From f0936d9c8b61121cbdfe51bf310fad90b5b0fa03 Mon Sep 17 00:00:00 2001 From: pml68 Date: Tue, 16 Jan 2024 16:58:24 +0100 Subject: Initial commit This is just a test site for now, will add content soon --- .github/ISSUE_TEMPLATE/bug_report.md | 27 +++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 16 +++++++++ .github/PULL_REQUEST_TEMPLATE.md | 7 ++++ .github/workflows/deploy.yml | 55 +++++++++++++++++++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/workflows/deploy.yml (limited to '.github') diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..7fbf05d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,27 @@ +--- +name: Bug report +about: Something's wrong, you can feel it +title: "[Bug]: " +labels: bug +assignees: '' +--- + +**Type** +As in, "Non-responsive element" or "Build fails", "404 error" etc. + +**Describe the bug** +If you can't describe it, then leave. + +**How to reproduce it** +If it happened during a certain action, how exactly? + +**Expected behavior** +Describe what you expected to happen. + +**Actual behavior** +Describe what actually happened. + +**Screenshots or logs** + +**Optional messages** +Anything else you'd like to mention. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..d6f991e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,16 @@ +--- +name: Feature request +about: You want something new, something exciting! +title: "[Feature]: " +labels: feature +assignees: '' +--- + +**Type** +"New page", "Better design" etc. Things like that. + +**Describe the feature** +What do you want added exactly? + +**Optional messages** +Anything else you'd like to mention. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..34bc22e --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,7 @@ +_Description of what this PR is changing or adding, and why:_ + +_Issues fixed by this PR (if any):_ + +## Presubmit checklist + +- [ ] You have confirmed that there are no [PRs](https://github.com/pml68/website/pulls) closely related to yours in terms of changes. diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..674e64b --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,55 @@ +name: Deploy to GitHub Pages + +on: + release: + types: [published] + workflow_dispatch: + +jobs: + build_site: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + + - name: Install NodeJS + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: pnpm + + - name: Install dependencies + run: pnpm install + + - name: Build + env: + BASE_PATH: '' + run: | + pnpm run build + + - name: Upload files + uses: actions/upload-pages-artifact@v2 + with: + path: 'build/' + + deploy: + needs: build_site + runs-on: ubuntu-latest + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{steps.deployment.outputs.page_url}} + + steps: + - name: Deploy + id: deployment + uses: actions/deploy-pages@v2 -- cgit v1.2.3