File tree 1 file changed +21
-19
lines changed
1 file changed +21
-19
lines changed Original file line number Diff line number Diff line change 1
- name : github pages
1
+ name : GitHub Pages
2
2
3
3
on :
4
4
push :
5
5
branches :
6
- - main # Set a branch to deploy
6
+ - main # Set a branch name to trigger deployment
7
7
pull_request :
8
8
9
9
jobs :
10
10
deploy :
11
11
runs-on : ubuntu-20.04
12
+ concurrency :
13
+ group : ${{ github.workflow }}-${{ github.ref }}
12
14
steps :
13
- - uses : actions/checkout@v2
14
- with :
15
- submodules : true # Fetch Hugo themes (true OR recursive)
16
- fetch-depth : 0 # Fetch all history for .GitInfo and .Lastmod
15
+ - uses : actions/checkout@v2
16
+ with :
17
+ submodules : true # Fetch Hugo themes (true OR recursive)
18
+ fetch-depth : 0 # Fetch all history for .GitInfo and .Lastmod
17
19
18
- - name : Setup Hugo
19
- uses : peaceiris/actions-hugo@v2
20
- with :
21
- hugo-version : ' latest'
22
- # extended: true
20
+ - name : Setup Hugo
21
+ uses : peaceiris/actions-hugo@v2
22
+ with :
23
+ hugo-version : ' latest'
24
+ extended : true
23
25
24
- - name : Build
25
- run : hugo --minify
26
+ - name : Build
27
+ run : hugo --minify
26
28
27
- - name : Deploy
28
- uses : peaceiris/actions-gh-pages@v3
29
- if : github.ref == 'refs/heads/main'
30
- with :
31
- github_token : ${{ secrets.GITHUB_TOKEN }}
32
- publish_dir : ./public
29
+ - name : Deploy
30
+ uses : peaceiris/actions-gh-pages@v3
31
+ if : ${{ github.ref == 'refs/heads/main' }}
32
+ with :
33
+ github_token : ${{ secrets.GITHUB_TOKEN }}
34
+ publish_dir : ./public
You can’t perform that action at this time.
0 commit comments