File tree Expand file tree Collapse file tree 1 file changed +28
-13
lines changed Expand file tree Collapse file tree 1 file changed +28
-13
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7- # Review gh actions docs if you want to further define triggers, paths, etc
8- # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
97
108jobs :
11- deploy :
12- name : Deploy to GitHub Pages
9+ build :
10+ name : Build Docusaurus
1311 runs-on : ubuntu-latest
1412 steps :
1513 - uses : actions/checkout@v4
16- - uses : actions/setup-node@v4.1.0
1714 with :
18- node-version : 20
15+ fetch-depth : 0
16+ - uses : actions/setup-node@v4
17+ with :
18+ node-version : 18
1919 cache : npm
2020
2121 - name : Install dependencies
2222 run : npm ci
2323 - name : Build website
2424 run : npm run build
2525
26- # Popular action to deploy to GitHub Pages:
27- # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
28- - name : Deploy to GitHub Pages
29- uses : peaceiris/actions-gh-pages@v3
26+ - name : Upload Build Artifact
27+ uses : actions/upload-pages-artifact@v3
3028 with :
31- github_token : ${{ secrets.GH_TOKEN }}
32- # Build output to publish to the `gh-pages` branch:
33- publish_dir : ./build
29+ path : build
30+
31+ deploy :
32+ name : Deploy to GitHub Pages
33+ needs : build
34+
35+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
36+ permissions :
37+ pages : write # to deploy to Pages
38+ id-token : write # to verify the deployment originates from an appropriate source
39+
40+ # Deploy to the github-pages environment
41+ environment :
42+ name : github-pages
43+ url : ${{ steps.deployment.outputs.page_url }}
3444
45+ runs-on : ubuntu-latest
46+ steps :
47+ - name : Deploy to GitHub Pages
48+ id : deployment
49+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments