File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1- # https://docusaurus.io/docs/deployment
21name : Deploy to GitHub Pages
32
43on :
54 push :
65 branches :
76 - main
8- # Review gh actions docs if you want to further define triggers, paths, etc
9- # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
7+ pull_request :
8+ branches :
9+ - ' *'
1010
1111jobs :
1212 build :
1313 name : Build Docusaurus
1414 runs-on : ubuntu-latest
1515 steps :
16- - uses : actions/checkout@v4
16+ - uses : actions/checkout@v5
1717 with :
1818 fetch-depth : 0
19- - uses : actions/setup-node@v4
19+ - uses : actions/setup-node@v6
2020 with :
21- node-version : 20
21+ node-version : 24
2222 cache : npm
2323
2424 - name : Install dependencies
3434 deploy :
3535 name : Deploy to GitHub Pages
3636 needs : build
37+ if : ${{ github.event_name == 'push' }}
3738
3839 # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
3940 permissions :
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ jobs:
1212 name : Test deployment
1313 runs-on : ubuntu-latest
1414 steps :
15- - uses : actions/checkout@v4
15+ - uses : actions/checkout@v5
1616 with :
1717 fetch-depth : 0
18- - uses : actions/setup-node@v4
18+ - uses : actions/setup-node@v6
1919 with :
20- node-version : 20
20+ node-version : 24
2121 cache : npm
2222
2323 - name : Install dependencies
You can’t perform that action at this time.
0 commit comments