File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : ci
22on :
3- push :
4- branches :
5- - master
6- - main
3+ push :
4+ branches :
5+ - master
6+ - main
77permissions :
8- contents : write
8+ contents : write
99jobs :
10- deploy :
11- runs-on : ubuntu-latest
12- steps :
13- - uses : actions/checkout@v3
14- - uses : actions/setup-node@v3
15- with :
16- node-version : 20
17- cach : yarn
18- - name : Install dependencies
19- run : yarn install --frozen-lockfile --non-interactive
20- - name : Build
21- run : |
22- cd docusaurus
23- yarn install
24- yarn build
25- - uses : peaceiris/actions-gh-pages@v3
26- with :
27- github_token : ${{ secrets.GITHUB_TOKEN }}
28- publish_dir : ./docusaurus/build
10+ deploy :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ - uses : actions/setup-node@v4
15+ with :
16+ node-version : 20
17+ cache : npm
18+ cache-dependency-path : docusaurus/package-lock.json
19+ - name : Install dependencies
20+ run : npm ci
21+ working-directory : docusaurus
22+ - name : Build
23+ run : npm run build
24+ working-directory : docusaurus
25+ - uses : peaceiris/actions-gh-pages@v4
26+ with :
27+ github_token : ${{ secrets.GITHUB_TOKEN }}
28+ publish_dir : ./docusaurus/build
You can’t perform that action at this time.
0 commit comments