File tree Expand file tree Collapse file tree 1 file changed +7
-22
lines changed Expand file tree Collapse file tree 1 file changed +7
-22
lines changed Original file line number Diff line number Diff line change 11
11
- completed
12
12
workflow_dispatch :
13
13
14
- permissions :
15
- contents : read
16
- pages : write
17
- id-token : write
18
-
19
- concurrency :
20
- group : " pages"
21
- cancel-in-progress : true
14
+ permissions : write-all
22
15
23
16
jobs :
24
17
generate :
25
18
runs-on : ubuntu-latest
26
19
27
- environment :
28
- name : github-pages
29
- url : ${{ steps.deployment.outputs.page_url }}
30
-
31
20
steps :
32
21
- uses : actions/checkout@v3
33
22
with :
34
23
fetch-depth : 0
35
24
token : ${{ secrets.GITHUB_TOKEN }}
36
25
37
- - name : Setup Pages
38
- uses : actions/configure-pages@v2
39
-
40
26
- name : Setup Node.js
41
27
uses : actions/setup-node@v3
42
28
@@ -56,11 +42,10 @@ jobs:
56
42
- name : Build VuePress site
57
43
run : npm run build
58
44
59
- - name : Upload artifact
60
- uses : actions/upload-pages-artifact@v1
61
- with :
62
- path : ' ./docs/.vuepress/dist'
63
-
64
45
- name : Deploy to GitHub Pages
65
- id : deployment
66
- uses : actions/deploy-pages@v1
46
+ uses : crazy-max/ghaction-github-pages@v3.0.0
47
+ with :
48
+ target_branch : gh-pages
49
+ build_dir : docs/.vuepress/dist
50
+ env :
51
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments