File tree Expand file tree Collapse file tree 1 file changed +30
-10
lines changed
Expand file tree Collapse file tree 1 file changed +30
-10
lines changed Original file line number Diff line number Diff line change 44 build :
55 runs-on : ubuntu-latest
66 steps :
7- - uses : actions/setup-node@v2
7+ - uses : actions/checkout@v6
88 with :
9- node-version : " 16"
10- - uses : actions/checkout@v2.3.1
11- - run : (cd website && npm ci)
12- - run : (cd website && npm run format:test)
13- - run : (cd website && npm run build)
14- - uses : JamesIves/github-pages-deploy-action@4.1.4
15- if : github.ref == 'refs/heads/master'
9+ fetch-depth : 0
10+ - uses : actions/setup-node@v6
1611 with :
17- branch : gh-pages
18- folder : website/build/website
12+ node-version : 25
13+ cache : yarn
14+ cache-dependency-path : yarn.lock
15+ - run : |
16+ yarn install --frozen-lockfile
17+ yarn format:test
18+ yarn build
19+ - uses : actions/configure-pages@v5
20+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
21+ - uses : actions/upload-pages-artifact@v3
22+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
23+ with :
24+ path : .vitepress/dist
25+ deploy :
26+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
27+ needs : build
28+ permissions :
29+ pages : write
30+ id-token : write
31+ environment :
32+ name : github-pages
33+ url : ${{ steps.deployment.outputs.page_url }}
34+ runs-on : ubuntu-latest
35+ steps :
36+ - name : Deploy
37+ id : deployment
38+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments