From 51bf413f14ce7abb3ee7343fd8965024c70033a7 Mon Sep 17 00:00:00 2001 From: Leon Gies Date: Sun, 2 Jun 2024 02:00:45 +0200 Subject: [PATCH] fetch-depth can be ommited --- .github/workflows/hugo.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index 190d363..eb55916 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -36,21 +36,25 @@ jobs: steps: - name: Setup Go environment uses: actions/setup-go@v5 + - name: Install Hugo CLI run: | wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.deb \ && sudo dpkg -i ${{ runner.temp }}/hugo.deb + - name: Checkout uses: actions/checkout@v4.1.6 - with: - fetch-depth: 1 + - name: Generate stdlib articles run: go run ./gen + - name: Setup Pages id: pages uses: actions/configure-pages@v5 + - name: Install Node.js dependencies run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" + - name: Build with Hugo env: # For maximum backward compatibility with Hugo modules @@ -61,6 +65,7 @@ jobs: --gc \ --minify \ --baseURL "${{ steps.pages.outputs.base_url }}/" + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: