From 3baccad72c3c57812ca00a180cb14b84860274bb Mon Sep 17 00:00:00 2001 From: G-Fourteen Date: Sat, 1 Nov 2025 10:46:00 -0600 Subject: [PATCH] Fix GitHub Pages deployment workflow --- .github/workflows/main-branch.yml | 27 +++++++++++++++++---------- .gitignore | 1 + 2 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 .gitignore diff --git a/.github/workflows/main-branch.yml b/.github/workflows/main-branch.yml index 1a8b883..6f54e25 100644 --- a/.github/workflows/main-branch.yml +++ b/.github/workflows/main-branch.yml @@ -13,6 +13,8 @@ jobs: steps: - name: Check out repository uses: actions/checkout@v4 + - name: Configure GitHub Pages + uses: actions/configure-pages@v5 - name: Prepare static site bundle run: | rm -rf dist @@ -28,6 +30,10 @@ jobs: with: name: static-site path: dist + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: dist report-build: name: Report Build Status @@ -41,9 +47,7 @@ jobs: tests: name: Run Tests - needs: build runs-on: ubuntu-latest - continue-on-error: true steps: - name: Check out repository uses: actions/checkout@v4 @@ -60,17 +64,20 @@ jobs: deploy: name: Deploy to Pages - needs: build + needs: + - build + - tests runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} steps: - - name: Download build artifact - uses: actions/download-artifact@v4 - with: - name: static-site - path: dist - name: Deploy to Pages - run: | - echo "Deployment placeholder - upload dist/ to GitHub Pages via existing automation." + id: deployment + uses: actions/deploy-pages@v4 report-tests: name: Report Tests Statuses diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..849ddff --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dist/