Skip to content

Commit b69995b

Browse files
committed
Add github-pages environment to deployment job
GitHub Pages deployment requires the job to specify an environment. Added the required environment configuration with: - name: github-pages - url: deployment output URL This fixes the 'Missing environment' error during deployment.
1 parent bccab45 commit b69995b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@ on:
77
workflow_dispatch:
88

99
env:
10-
BLOG_URL: ${{ secrets.BLOG_URL || 'https://bytenoob.github.io/blog' }}
10+
BLOG_URL: ${{ secrets.BLOG_URL || 'https://bytenoob.io' }}
1111
BLOG_AUTHOR: ${{ secrets.BLOG_AUTHOR || 'bytenoob' }}
1212
BLOG_EMAIL: ${{ secrets.BLOG_EMAIL || 'blog@example.com' }}
1313
MINIFY_ASSETS: 'true'
1414

1515
jobs:
1616
publish:
1717
runs-on: ubuntu-latest
18+
environment:
19+
name: github-pages
20+
url: ${{ steps.deployment.outputs.page_url }}
1821
permissions:
1922
contents: read
2023
pages: write

0 commit comments

Comments
 (0)