44 push :
55 branches :
66 - pages
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
7+ workflow_dispatch :
98
10- defaults :
11- run :
12- shell : bash
13- working-directory : ./scripts
9+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+ permissions :
11+ contents : read
12+ pages : write
13+ id-token : write
14+
15+ concurrency :
16+ group : " pages"
17+ cancel-in-progress : true
1418
1519jobs :
16- build :
17- name : Build Docusaurus
20+ # Single deploy job since we're just deploying
21+ deploy :
22+ environment :
23+ name : github-pages
24+ url : ${{ steps.deployment.outputs.page_url }}
1825 runs-on : ubuntu-latest
19- defaults :
20- run :
21- shell : bash
22- working-directory : ./documentation
2326 steps :
24- - uses : actions/checkout@v4
25- with :
26- fetch-depth : 0
27- - uses : actions/setup-node@v4
27+ - name : Checkout
28+ uses : actions/checkout@v3
29+ - name : Set up Node.js
30+ uses : actions/setup-node@v3
2831 with :
2932 node-version : 18
3033 cache : npm
31- cache-dependency-path : " ./package-lock.json "
32- - name : Install dependencies
34+ - name : Install dependencies
35+ working-directory : ./documentation
3336 run : npm ci
34- - name : Build website
37+ - name : Build
38+ working-directory : ./documentation
3539 run : npm run build
36-
37- - name : Upload Build Artifact
38- uses : actions/upload-pages-artifact@v3
40+ - name : Setup Pages
41+ uses : actions/configure-pages@v3
42+ - name : Upload artifact
43+ uses : actions/upload-pages-artifact@v2
3944 with :
40- path : build
41-
42- deploy :
43- name : Deploy to GitHub Pages
44- needs : build
45-
46- # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
47- permissions :
48- pages : write # to deploy to Pages
49- id-token : write # to verify the deployment originates from an appropriate source
50-
51- # Deploy to the github-pages environment
52- environment :
53- name : github-pages
54- url : ${{ steps.deployment.outputs.page_url }}
55-
56- runs-on : ubuntu-latest
57- steps :
45+ # Upload entire repository
46+ path : ./documentation/build
5847 - name : Deploy to GitHub Pages
5948 id : deployment
60- uses : actions/deploy-pages@v4
49+ uses : actions/deploy-pages@v2
6150
0 commit comments