Skip to content

Commit 8a57621

Browse files
workflow should invoke hugo only once
1 parent eea89ad commit 8a57621

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/hugo.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
with:
4848
submodules: recursive
4949
fetch-depth: 0
50+
- name: Install Node.js dependencies
51+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
5052
#- name: Fetch syntax highlighter
5153
# run: git clone https://github.com/hedyhli/tree-sitter-cognate
5254
- name: Init tree-sitter
@@ -56,18 +58,16 @@ jobs:
5658
- name: Setup Pages
5759
id: pages
5860
uses: actions/configure-pages@v5
59-
- name: Install Node.js dependencies
60-
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
61-
- name: Build with Hugo
62-
env:
63-
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
64-
HUGO_ENVIRONMENT: production
65-
TZ: America/Los_Angeles
66-
run: |
67-
hugo \
68-
--gc \
69-
--minify \
70-
--baseURL "${{ steps.pages.outputs.base_url }}/"
61+
#- name: Build with Hugo
62+
# env:
63+
# HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
64+
# HUGO_ENVIRONMENT: production
65+
# TZ: America/Los_Angeles
66+
# run: |
67+
# hugo \
68+
# --gc \
69+
# --minify \
70+
# --baseURL "${{ steps.pages.outputs.base_url }}/"
7171
- name: Upload artifact
7272
uses: actions/upload-pages-artifact@v3
7373
with:

0 commit comments

Comments
 (0)