File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Deploy static content to Pages
22
33on :
4+ push :
5+ branches : ["trunk"]
46 release :
57 types : [published]
68 workflow_dispatch :
79
8- # Sets permissions of the ACCESS_TOKEN to allow deployment to GitHub Pages
10+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
911permissions :
1012 contents : read
1113 pages : write
2224 name : github-pages
2325 url : ${{ steps.deployment.outputs.page_url }}
2426 runs-on : ubuntu-latest
25- if : |
26- github.event_name == 'push' ||
27- github.event_name == 'workflow_dispatch' ||
28- (github.event_name == 'release' && github.event.action == 'published' && startsWith(github.ref, 'refs/tags/'))
2927 steps :
3028 - name : Checkout
3129 uses : actions/checkout@v4
4745 - name : Upload artifact
4846 uses : actions/upload-pages-artifact@v3
4947 with :
50- path : " ./build"
48+ path : " ./build" # Upload the Docusaurus build output
5149
5250 - name : Deploy to GitHub Pages
5351 id : deployment
5452 uses : actions/deploy-pages@v4
55- with :
56- github_token : ${{ secrets.ACCESS_TOKEN }} # Explicitly using GITHUB_TOKEN for clarity
You can’t perform that action at this time.
0 commit comments