Skip to content

Commit de02f0a

Browse files
committed
Add missing environment configuration for GitHub Pages deployment
- Add required 'github-pages' environment to deployment job - Include page_url output from deployment step - This fixes the 'Missing environment' error in GitHub Actions
1 parent 02ff71e commit de02f0a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ concurrency:
1919
jobs:
2020
build-and-deploy:
2121
runs-on: ubuntu-latest
22+
environment:
23+
name: github-pages
24+
url: ${{ steps.deployment.outputs.page_url }}
2225

2326
steps:
2427
- name: Checkout

0 commit comments

Comments
 (0)