From f6bed01377a98e46acabeec1edcee3efc2b292bb Mon Sep 17 00:00:00 2001 From: Void Date: Thu, 12 Nov 2026 09:43:38 +0000 Subject: [PATCH] Guard Pages workflow on github.server_url (#6) --- .github/workflows/quartz-pages.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/quartz-pages.yml b/.github/workflows/quartz-pages.yml index 4baf812..c15cbdc 100644 --- a/.github/workflows/quartz-pages.yml +++ b/.github/workflows/quartz-pages.yml @@ -33,7 +33,11 @@ jobs: repository: GameCult/GameCult-Quartz path: GameCult-Quartz + # Pages actions exist only on GitHub: the forge runner resolves actions + # from data.forgejo.org, which has no actions/configure-pages, so the job + # failed there. Build always; touch Pages only on the GitHub mirror. - name: Configure Pages + if: github.server_url == 'https://github.com' uses: actions/configure-pages@v5 - name: Setup Node @@ -56,11 +60,13 @@ jobs: --outputDir "${{ inputs.output-dir }}" - name: Upload Pages artifact + if: github.server_url == 'https://github.com' uses: actions/upload-pages-artifact@v3 with: path: ${{ inputs.output-dir }} deploy: + if: github.server_url == 'https://github.com' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}