Skip to content

Commit 000866b

Browse files
committed
fix: enable submodules for hugo theme
1 parent 1f1d408 commit 000866b

1 file changed

Lines changed: 19 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
11
name: Deploy Hugo
2+
23
on:
34
push:
4-
branches: [ main ]
5+
branches:
6+
- main
7+
58
jobs:
69
build:
710
runs-on: ubuntu-latest
11+
812
steps:
9-
- uses: actions/checkout@v4
13+
- name: Checkout
14+
uses: actions/checkout@v4
1015
with:
11-
submodules: true
12-
- uses: peaceiris/actions-hugo@v3
16+
submodules: recursive
17+
fetch-depth: 0
18+
19+
- name: Setup Hugo
20+
uses: peaceiris/actions-hugo@v3
1321
with:
1422
hugo-version: 'latest'
15-
- run: hugo
16-
- uses: peaceiris/actions-gh-pages@v4
23+
extended: true
24+
25+
- name: Build
26+
run: hugo --minify
27+
28+
- name: Deploy
29+
uses: peaceiris/actions-gh-pages@v4
1730
with:
1831
github_token: ${{ secrets.GITHUB_TOKEN }}
1932
publish_dir: ./public

0 commit comments

Comments
 (0)