File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- deploy :
2- runs-on : ubuntu-latest
3-
4- steps :
5- - name : Checkout
6- uses : actions/checkout@v4
7-
8- - name : Setup Node
9- uses : actions/setup-node@v4
10- with :
11- node-version : 20
12- cache : yarn
13- cache-dependency-path : docs/yarn.lock
14-
15- - name : Install dependencies
16- working-directory : docs
17- run : yarn install --frozen-lockfile
18-
19- - name : Build Docusaurus
20- working-directory : docs
21- run : yarn build
22-
23- - name : Deploy to GitHub Pages
24- uses : peaceiris/actions-gh-pages@v4
25- with :
26- github_token : ${{ secrets.GITHUB_TOKEN }}
27- publish_dir : ./docs/build
1+ name : Deploy Docs
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' docs/**'
9+ - ' .github/workflows/docs.yml'
10+
11+ permissions :
12+ contents : write
13+
14+ jobs :
15+ deploy :
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v4
21+
22+ - name : Setup Node
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : 20
26+ cache : yarn
27+ cache-dependency-path : docs/yarn.lock
28+
29+ - name : Install dependencies
30+ working-directory : docs
31+ run : yarn install --frozen-lockfile
32+
33+ - name : Build Docusaurus
34+ working-directory : docs
35+ run : yarn build
36+
37+ - name : Deploy to GitHub Pages
38+ uses : peaceiris/actions-gh-pages@v4
39+ with :
40+ github_token : ${{ secrets.GITHUB_TOKEN }}
41+ publish_dir : ./docs/build
You can’t perform that action at this time.
0 commit comments