File tree Expand file tree Collapse file tree 1 file changed +18
-34
lines changed
Expand file tree Collapse file tree 1 file changed +18
-34
lines changed Original file line number Diff line number Diff line change @@ -3,48 +3,32 @@ name: Deploy to GitHub Pages
33on :
44 push :
55 branches :
6- - pages
7- workflow_dispatch :
8-
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
6+ - pages # Change this to your default branch if it's different
187
198jobs :
20- # Single deploy job since we're just deploying
219 deploy :
22- environment :
23- name : github-pages
24- url : ${{ steps.deployment.outputs.page_url }}
2510 runs-on : ubuntu-latest
11+
2612 steps :
27- - name : Checkout
28- uses : actions/checkout@v3
29- - name : Set up Node.js
30- uses : actions/setup-node@v3
13+ - name : Checkout code
14+ uses : actions/checkout@v2
15+
16+ - name : Setup Node.js
17+ uses : actions/setup-node@v2
3118 with :
32- node-version : 18
33- cache : npm
19+ node-version : 18 # Use Node.js 18 here
20+
3421 - name : Install dependencies
3522 working-directory : ./documentation
36- run : npm ci
37- - name : Build
23+ run : npm install
24+
25+ - name : Build site
3826 working-directory : ./documentation
3927 run : npm run build
40- - name : Setup Pages
41- uses : actions/configure-pages@v3
42- - name : Upload artifact
43- uses : actions/upload-pages-artifact@v2
44- with :
45- # Upload entire repository
46- path : ./documentation/build
28+
4729 - name : Deploy to GitHub Pages
48- id : deployment
49- uses : actions/deploy-pages@v2
50-
30+ uses : peaceiris/actions-gh-pages@v3
31+ with :
32+ github_token : ${{ secrets.GITHUB_TOKEN }}
33+ publish_dir : ./documentation/build # Change this if your build output directory is different
34+
You can’t perform that action at this time.
0 commit comments