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 : build
22
3- on :
4- push :
5- branches-ignore : gh-pages
3+ on : ["push"]
4+
5+ permissions : {}
66
77jobs :
88 build :
99 runs-on : ubuntu-latest
10+ permissions :
11+ contents : read
1012 steps :
11- - uses : actions/checkout@v4
12- - uses : actions/setup-node@v4
13+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14+ with :
15+ persist-credentials : false
16+ - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
1317 with :
14- node-version : 20
18+ node-version : 22
1519 cache : npm
1620 - run : npm ci
1721 - run : npm run build
18- - uses : actions/upload-artifact@v4
22+ - uses : actions/upload-pages- artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
1923 with :
20- name : dist
2124 path : docs/.vuepress/dist
25+
2226 publish :
2327 if : github.ref == 'refs/heads/main'
2428 needs : build
2529 runs-on : ubuntu-latest
2630 permissions :
27- contents : write
31+ pages : write
32+ id-token : write
33+ environment :
34+ name : github-pages
35+ url : ${{ steps.deployment.outputs.page_url }}
2836 steps :
29- - uses : actions/checkout@v4
30- with :
31- ref : gh-pages
32- - run : git rm -r .
33- - uses : actions/download-artifact@v4
34- with :
35- name : dist
36- - run : |
37- git config --global user.email "${{ secrets.GIT_EMAIL }}"
38- git config --global user.name "${{ secrets.GIT_NAME }}"
39- git config --global push.default simple
40- git checkout HEAD -- CNAME
41- git add -A
42- git commit -m "Update GitHub pages from ${GITHUB_SHA}"
43- git push
37+ - name : Deploy to GitHub Pages
38+ id : deployment
39+ uses : actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
You can’t perform that action at this time.
0 commit comments