File tree 1 file changed +25
-6
lines changed
1 file changed +25
-6
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- master
7
+ pull_request : null
7
8
8
9
concurrency :
9
10
group : ${{ github.workflow }}
10
11
cancel-in-progress : true
11
12
13
+ permissions : {}
14
+
12
15
jobs :
13
- deploy :
16
+ build :
14
17
runs-on : ubuntu-latest
15
18
steps :
16
19
- name : Checkout
17
20
uses : actions/checkout@v4
18
21
with :
19
22
lfs : true
23
+ persist-credentials : false
20
24
21
25
- name : Install pnpm
22
26
uses : pnpm/action-setup@v3
48
52
run : |
49
53
pnpm run build
50
54
51
- - name : Deploy Docs
52
- uses : peaceiris/actions-gh-pages@v4
55
+ - name : Upload build artifact
56
+ id : deployment
57
+ if : ${{ github.ref_name == 'master' }}
58
+ uses : actions/upload-pages-artifact@v3
53
59
with :
54
- deploy_key : ${{ secrets.ACTIONS_DEPLOY_KEY }}
55
- publish_dir : docs/.vitepress/dist
56
- cname : docs.sublimetext.io
60
+ path : docs/.vitepress/dist/
61
+
62
+ deploy :
63
+ runs-on : ubuntu-latest
64
+ needs : build
65
+ permissions :
66
+ pages : write
67
+ id-token : write
68
+ if : ${{ github.ref_name == 'master' }}
69
+ environment :
70
+ name : github-pages
71
+ url : ${{ steps.deployment.outputs.page_url }}
72
+ steps :
73
+ - name : Deploy to GitHub Pages
74
+ id : deployment
75
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments