From 6cc562444838f577a17938a8a57c3910ab961eae Mon Sep 17 00:00:00 2001 From: Scr4tch587 Date: Tue, 7 Jul 2026 22:29:18 -0400 Subject: [PATCH 1/3] ci: deploy frontend to github pages Co-Authored-By: Claude Fable 5 --- .github/workflows/deploy-pages.yml | 53 ++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/deploy-pages.yml diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml new file mode 100644 index 0000000..edfd38d --- /dev/null +++ b/.github/workflows/deploy-pages.yml @@ -0,0 +1,53 @@ +name: Deploy Frontend to Pages + +on: + push: + branches: [main] + paths: + - "frontend/**" + - ".github/workflows/deploy-pages.yml" + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: oven-sh/setup-bun@v2 + + - name: Install dependencies + working-directory: frontend + run: bun install --frozen-lockfile + + - name: Build + working-directory: frontend + run: bun run build + env: + # repo actions variable: the https api origin (no trailing slash, no /api/v1) + VITE_API_BASE_URL: ${{ vars.VITE_API_BASE_URL }} + + - uses: actions/configure-pages@v5 + + - uses: actions/upload-pages-artifact@v3 + with: + path: frontend/dist + + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - id: deployment + uses: actions/deploy-pages@v4 From 6b652108e465d8e97db6dadf9128bf134e43e9b4 Mon Sep 17 00:00:00 2001 From: Scr4tch587 Date: Thu, 16 Jul 2026 22:32:09 -0400 Subject: [PATCH 2/3] ci: deploy pages on push to any branch --- .github/workflows/deploy-pages.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index edfd38d..a1900ec 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -2,7 +2,6 @@ name: Deploy Frontend to Pages on: push: - branches: [main] paths: - "frontend/**" - ".github/workflows/deploy-pages.yml" From bde2d69b294c64884c645d07a0eb382b43594d03 Mon Sep 17 00:00:00 2001 From: Scr4tch587 Date: Thu, 16 Jul 2026 22:41:19 -0400 Subject: [PATCH 3/3] ci: restrict pages deploy back to main only --- .github/workflows/deploy-pages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index a1900ec..edfd38d 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -2,6 +2,7 @@ name: Deploy Frontend to Pages on: push: + branches: [main] paths: - "frontend/**" - ".github/workflows/deploy-pages.yml"