Skip to content

Commit 86a3334

Browse files
committed
fix(ci): add github-pages environment to deploy workflow
Add required environment configuration to GitHub Pages deployment workflow to fix "Missing environment" error in GitHub Actions.
1 parent 8e690c8 commit 86a3334

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/deploy-page.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ concurrency:
2323
jobs:
2424
build-and-deploy:
2525
runs-on: ubuntu-latest
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
2629
# Only run if CI workflow succeeded (for automatic runs) or always for manual runs
2730
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
2831

0 commit comments

Comments
 (0)