diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 3892f79..64df19a 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -10,12 +10,20 @@ jobs: submodules: true fetch-depth: 0 - - name: Setup Hugo + - name: Cache Hugo binary + id: cache-hugo + uses: actions/cache@v4 + with: + path: hugo + key: ${{ runner.os }}-hugo + + - name: Download Hugo + if: steps.cache-hugo.outputs.cache-hit != 'true' run: | curl -L -o hugo_0.140.0_linux-amd64.tar.gz https://github.com/gohugoio/hugo/releases/download/v0.140.0/hugo_0.140.0_linux-amd64.tar.gz tar zxvf hugo_0.140.0_linux-amd64.tar.gz - - name: Build + - name: Build website run: ./hugo - name: Upload artifact