Skip to content

Commit 9071fb8

Browse files
committed
update Hugo setup on CI
1 parent e9396a2 commit 9071fb8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: publish
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66

77
jobs:
88
publish-site:
@@ -18,11 +18,14 @@ jobs:
1818
git config --global user.name "masci"
1919
git remote add upstream https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
2020
21-
- name: Build site
22-
uses: jakejarvis/hugo-build-action@master
21+
- name: Setup Hugo
22+
uses: peaceiris/actions-hugo@v3
2323
with:
2424
args: -s site
2525

26+
- name: Build site
27+
run: hugo -s site
28+
2629
- name: Push gh-pages branch
2730
run: |
2831
git add -A --force

0 commit comments

Comments
 (0)