Skip to content

Commit f39f97f

Browse files
author
pascalheidmann
committed
update hugo deployment runner
1 parent 193d194 commit f39f97f

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

.github/workflows/hugo.yml

+21-19
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,34 @@
1-
name: github pages
1+
name: GitHub Pages
22

33
on:
44
push:
55
branches:
6-
- main # Set a branch to deploy
6+
- main # Set a branch name to trigger deployment
77
pull_request:
88

99
jobs:
1010
deploy:
1111
runs-on: ubuntu-20.04
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
1214
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
1719

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
2325

24-
- name: Build
25-
run: hugo --minify
26+
- name: Build
27+
run: hugo --minify
2628

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

0 commit comments

Comments
 (0)