File tree 1 file changed +23
-10
lines changed
1 file changed +23
-10
lines changed Original file line number Diff line number Diff line change 1
- name : Publish Site
1
+ name : GitHub Pages
2
2
3
3
on :
4
4
push :
5
5
branches :
6
6
- default
7
+ pull_request :
7
8
8
9
jobs :
9
- build-deploy :
10
- runs-on : ubuntu-latest
11
-
10
+ deploy :
11
+ runs-on : ubuntu-20.04
12
+ concurrency :
13
+ group : ${{ github.workflow }}-${{ github.ref }}
12
14
steps :
13
- - name : Checkout Repo
14
- uses : actions/checkout@master
15
+ - uses : actions/checkout@v2
16
+ with :
17
+ submodules : true
18
+ fetch-depth : 0
19
+
20
+ - name : Setup Hugo
21
+ uses : peaceiris/actions-hugo@v2
15
22
with :
16
- submodules : true
17
- - name : Publish Site
18
- uses : chabad360/hugo-gh-pages@master
23
+ hugo-version : ' 0.85.0'
24
+
25
+ - name : Build
26
+ run : hugo --minify
27
+
28
+ - name : Deploy
29
+ uses : peaceiris/actions-gh-pages@v3
30
+ if : ${{ github.ref == 'refs/heads/default' }}
19
31
with :
20
- githubToken : ${{ secrets.PERSONAL_TOKEN }}
32
+ github_token : ${{ secrets.PERSONAL_TOKEN }}
33
+ publish_dir : ./public
You can’t perform that action at this time.
0 commit comments