Skip to content

Commit 064bef7

Browse files
committed
fix: run hugo after we actually install it
1 parent 3685c5e commit 064bef7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
run: |
2020
. ./.env
2121
echo "::set-output name=HUGO_VERSION::${HUGO_VERSION}"
22-
hugo mod init github.com/openmodelingfoundation/openmodelingfoundation.github.io
23-
hugo mod get github.com/google/docsy@v0.4.0
2422
2523
- name: Setup Hugo
2624
uses: peaceiris/actions-hugo@v2
@@ -33,7 +31,10 @@ jobs:
3331
- name: Build
3432
env:
3533
HUGO_ENV: "production"
36-
run: hugo --minify
34+
run: |
35+
hugo mod init github.com/openmodelingfoundation/openmodelingfoundation.github.io
36+
hugo mod get github.com/google/docsy@v0.4.0
37+
hugo --minify
3738
3839
- name: Deploy
3940
if: github.event_name == 'push'

0 commit comments

Comments
 (0)