Skip to content

Commit 487d5d4

Browse files
committed
fix: continue to throw things at GH actions
1 parent 93d749b commit 487d5d4

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/gh-pages.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ jobs:
2020
. ./.env
2121
echo "::set-output name=HUGO_VERSION::${HUGO_VERSION}"
2222
23-
- name: Setup Yarn
23+
- name: Add hugo nodejs dependencies
2424
uses: actions/setup-node@v3
2525
with:
2626
node-version: '16'
27-
run: |
28-
yarn add -D postcss autoprefixer postcss-cli
27+
run: yarn add -D postcss autoprefixer postcss-cli
2928

3029
- name: Setup Hugo
3130
uses: peaceiris/actions-hugo@v2
@@ -34,14 +33,14 @@ jobs:
3433
# https://github.com/marketplace/actions/hugo-setup#%EF%B8%8F-read-hugo-version-from-file
3534
hugo-version: '${{ steps.hugo-version.outputs.HUGO_VERSION }}'
3635
extended: true
37-
38-
- name: Build
39-
env:
40-
HUGO_ENV: "production"
4136
run: |
4237
hugo mod init github.com/openmodelingfoundation/openmodelingfoundation.github.io
4338
hugo mod get github.com/google/docsy@v0.4.0
44-
hugo --minify
39+
40+
- name: Build Hugo site
41+
env:
42+
HUGO_ENV: "production"
43+
run: hugo --minify
4544

4645
- name: Deploy
4746
if: github.event_name == 'push'

0 commit comments

Comments
 (0)