Skip to content

Commit

Permalink
ci: Use devbox specified hugo version
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Feb 8, 2024
1 parent 6b41819 commit 69b08b2
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,15 @@ jobs:
# Build job
build:
runs-on: ubuntu-22.04
env:
HUGO_VERSION: 0.120.4
steps:
- 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
- name: Install Dart Sass
run: sudo snap install dart-sass

- name: Checkout
uses: actions/checkout@v4

- name: Install devbox
uses: jetpack-io/[email protected]
with:
enable-cache: true

- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
Expand Down Expand Up @@ -78,7 +73,7 @@ jobs:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
devbox run -- hugo \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
working-directory: docs
Expand Down

0 comments on commit 69b08b2

Please sign in to comment.