From 69b08b282cfd04c0f096756a0ec925b1174c782c Mon Sep 17 00:00:00 2001 From: Jimmi Dyson Date: Thu, 8 Feb 2024 13:53:45 +0000 Subject: [PATCH] ci: Use devbox specified hugo version --- .github/workflows/github-pages.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 479edd207..9ff4bed2d 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -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/devbox-install-action@v0.8.0 + with: + enable-cache: true + - name: Setup Pages id: pages uses: actions/configure-pages@v4 @@ -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