Skip to content

Commit 3e899d4

Browse files
Merge pull request #8 from Nokia-Bell-Labs/update-docs-yml-environment
add environment to docs yml
2 parents 508d5db + b1773ea commit 3e899d4

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/docs.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
id-token: write
1212

1313
jobs:
14-
docs:
14+
build-docs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
@@ -41,6 +41,20 @@ jobs:
4141
with:
4242
path: docs/build/html
4343

44+
deploy-pages:
45+
if: github.ref == 'refs/heads/main'
46+
needs: build-docs
47+
runs-on: ubuntu-latest
48+
49+
permissions:
50+
pages: write
51+
id-token: write
52+
53+
environment:
54+
name: github-pages
55+
url: ${{ steps.deployment.outputs.page_url }}$
56+
57+
steps:
4458
- name: Deploy to GitHub Pages
45-
if: github.ref == 'refs/heads/main'
46-
uses: actions/deploy-pages@v4
59+
id: deployment
60+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)