Skip to content

Commit

Permalink
fix: hugo workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dlvhdr committed May 4, 2023
1 parent 9e869f8 commit 46d4406
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/hugo.yaml
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass Embedded
run: sudo snap install dart-sass-embedded
- name: Checkout
Expand All @@ -50,6 +50,9 @@ jobs:
uses: actions/configure-pages@v3
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Setup Hugo modules
working-directory: ./docs
run: hugo mod get -u
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
Expand All @@ -60,7 +63,7 @@ jobs:
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand Down

0 comments on commit 46d4406

Please sign in to comment.