File tree Expand file tree Collapse file tree 3 files changed +34
-2
lines changed
Expand file tree Collapse file tree 3 files changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ permissions:
1212
1313jobs :
1414 build :
15+ name : " Build Docs"
1516 runs-on : ' ubuntu-latest'
1617 steps :
1718 - uses : ' actions/checkout@v4'
2526 with :
2627 path : ' generated-pages'
2728 deploy :
29+ name : " Deploy Docs"
2830 environment :
2931 name : ' github-pages'
3032 url : ' ${{ steps.deployment.outputs.page_url }}'
Original file line number Diff line number Diff line change 99 - closed
1010
1111permissions :
12- pages : ' write'
13- id-token : ' write'
1412 contents : ' write'
1513 pull-requests : ' write'
1614
1715jobs :
1816 build :
17+ name : " Build PR Preview Docs"
1918 runs-on : ' ubuntu-latest'
2019 steps :
2120 - uses : ' actions/checkout@v4'
Original file line number Diff line number Diff line change 1+ name : ' Publish Preview of Docs Site from branch'
2+
3+ # The publish_docs_preview.yml workflow takes a PR and publishes the results to it's own branch
4+ # so users can preview it. But that git branch then needs some way to publish, so this action does that.
5+
6+ on :
7+ push :
8+ branch :
9+ - gh-pages
10+
11+ permissions :
12+ pages : ' write'
13+ id-token : ' write'
14+
15+ jobs :
16+ stage :
17+ name : " Stage PR preview from branch to pages"
18+ runs-on : ' ubuntu-latest'
19+ steps :
20+ - uses : ' actions/checkout@v4'
21+ deploy :
22+ name : " Deploy PR Preview from branch to pages"
23+ needs : ' stage'
24+ environment :
25+ name : ' gh-pages-pr-preview'
26+ url : ' ${{ steps.deployment.outputs.page_url }}'
27+ runs-on : ' ubuntu-latest'
28+ steps :
29+ - name : ' Deploy to GitHub Pages'
30+ id : ' deployment'
31+ uses : ' actions/deploy-pages@v4'
You can’t perform that action at this time.
0 commit comments