From 2429e2b8c881e7d56e621ce453b2366e79cb39cb Mon Sep 17 00:00:00 2001 From: Andrew Dodson Date: Sun, 4 Jan 2026 23:09:52 +0000 Subject: [PATCH 1/2] chore(ci): deploy pages --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ca24797..3d79580a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,11 @@ name: CI on: [push] +concurrency: + group: "pages" + cancel-in-progress: false + + jobs: lint: runs-on: ubuntu-latest @@ -46,3 +51,29 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: npx semantic-release + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 + with: + node-version: 22 + - run: npm i + - run: npm run build + - uses: actions/upload-pages-artifact@v3 + with: + path: ./ + + deploy: + runs-on: ubuntu-latest + needs: build + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - id: deployment + uses: actions/deploy-pages@v4 From 44799aa7f8ac1f33340b4674ceecaaf95e842dec Mon Sep 17 00:00:00 2001 From: Andrew Dodson Date: Sun, 4 Jan 2026 23:27:17 +0000 Subject: [PATCH 2/2] chore(ci): deploy pages --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d79580a..cacb7377 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,6 +54,7 @@ jobs: build: runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' steps: - uses: actions/checkout@v6 - uses: actions/setup-node@v6 @@ -61,6 +62,7 @@ jobs: node-version: 22 - run: npm i - run: npm run build + - run: rm -rf node_modules/ - uses: actions/upload-pages-artifact@v3 with: path: ./ @@ -68,6 +70,7 @@ jobs: deploy: runs-on: ubuntu-latest needs: build + if: github.ref == 'refs/heads/main' permissions: pages: write # to deploy to Pages id-token: write # to verify the deployment originates from an appropriate source