File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change 13
13
# Allows you to run this workflow manually from the Actions tab
14
14
workflow_dispatch :
15
15
16
- permissions :
17
- contents : read
18
- pages : write
19
- id-token : write
20
-
21
16
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
22
17
jobs :
23
18
# This workflow contains a single job called "build"
@@ -63,16 +58,15 @@ jobs:
63
58
64
59
- name : Build
65
60
run : hugo --gc --minify --cleanDestinationDir
66
-
67
- - name : Upload artifact
68
- uses : actions/upload-pages-artifact@v3
61
+
62
+ - name : Deploy
63
+ uses : peaceiris/actions-gh-pages@v4
69
64
with :
70
- # Upload dist repository
71
- path : ' ./public'
72
-
73
- - name : Deploy to GitHub Pages
74
- id : deployment
75
- uses : actions/deploy-pages@v4
65
+ github_token : ${{ secrets.TOKEN }}
66
+ publish_branch : master
67
+ force_orphan : true
68
+ publish_dir : ./public
69
+ cname : liudon.com
76
70
77
71
- name : Generate robots.txt
78
72
run : |
You can’t perform that action at this time.
0 commit comments