diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ee32897..f3ba954 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,13 +6,16 @@ on: branches: - "*" +permissions: + pages: write + id-token: write + jobs: build: name: Build runs-on: ubuntu-latest - permissions: - pages: write - id-token: write + env: + HUGO_VERSION: 0.145.0 strategy: fail-fast: true outputs: @@ -20,6 +23,10 @@ jobs: steps: - name: Checkout Source uses: actions/checkout@v4 + - 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 Node 20 uses: actions/setup-node@v4 with: