From cc015b4f551bcfcea1139970555ec014a7702e21 Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Tue, 20 Jan 2026 00:23:45 +0000 Subject: [PATCH] feat: enhance GitHub Pages deployment workflow with environment variables and output URL logging --- .github/workflows/deploy-pages.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 7151d43..8e4cc83 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -35,8 +35,10 @@ jobs: run: npm run build env: BUILD_STATIC: 'true' + CI: 'true' + GITHUB_PAGES: 'true' NEXT_PUBLIC_FLASK_BACKEND_URL: ${{ vars.NEXT_PUBLIC_FLASK_BACKEND_URL || '' }} - NEXT_PUBLIC_BASE_PATH: ${{ vars.NEXT_PUBLIC_BASE_PATH || '' }} + NEXT_PUBLIC_BASE_PATH: ${{ vars.NEXT_PUBLIC_BASE_PATH || format('/{0}', github.event.repository.name) }} - name: Setup Pages uses: actions/configure-pages@v4 @@ -47,6 +49,8 @@ jobs: path: './out' deploy: + outputs: + page_url: ${{ steps.deployment.outputs.page_url }} environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} @@ -56,3 +60,6 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + + - name: Publish deployment URL + run: echo "GitHub Pages deployed to: ${{ steps.deployment.outputs.page_url }}" >> "$GITHUB_STEP_SUMMARY"