File tree Expand file tree Collapse file tree 1 file changed +17
-25
lines changed
Expand file tree Collapse file tree 1 file changed +17
-25
lines changed Original file line number Diff line number Diff line change 77 # Review gh actions docs if you want to further define triggers, paths, etc
88 # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
99
10+ permissions :
11+ contents : read
12+ pages : write
13+ id-token : write
14+
15+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
16+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
17+ concurrency :
18+ group : " pages"
19+ cancel-in-progress : false
20+
1021jobs :
11- build :
12- name : Build Docusaurus
22+ deploy :
23+ name : Deploy to GitHub Pages
1324 runs-on : ubuntu-latest
1425 steps :
1526 - uses : actions/checkout@v4
2536 - name : Build website
2637 run : npm run build
2738
28- - name : Upload Build Artifact
29- uses : actions/upload-pages-artifact@v3
30- with :
31- path : build
32-
33- deploy :
34- name : Deploy to GitHub Pages
35- needs : build
36-
37- # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
38- permissions :
39- pages : write # to deploy to Pages
40- id-token : write # to verify the deployment originates from an appropriate source
41-
42- # Deploy to the github-pages environment
43- environment :
44- name : github-pages
45- url : ${{ steps.deployment.outputs.page_url }}
46-
47- runs-on : ubuntu-latest
48- steps :
4939 - name : Deploy to GitHub Pages
50- id : deployment
51- uses : actions/deploy-pages@v4
40+ uses : peaceiris/actions-gh-pages@v4
41+ with :
42+ github_token : ${{ secrets.GITHUB_TOKEN }}
43+ publish_dir : ./build
You can’t perform that action at this time.
0 commit comments