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