diff --git a/content/en/host-and-deploy/host-on-github-pages/index.md b/content/en/host-and-deploy/host-on-github-pages/index.md index c4e50683cb..2b296d6e04 100644 --- a/content/en/host-and-deploy/host-on-github-pages/index.md +++ b/content/en/host-and-deploy/host-on-github-pages/index.md @@ -149,10 +149,18 @@ Step 4 with: path: ${{ runner.temp }}/hugo_cache key: ${{ steps.cache-restore.outputs.cache-primary-key }} - - name: Upload artifact - uses: actions/upload-pages-artifact@v4 - with: - path: ./public + - name: Create Pages artifact + run: | + tar \ + --dereference --hard-dereference \ + -cvf $RUNNER_TEMP/artifact.tar \ + -C public \ + . + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: github-pages + path: ${{ runner.temp }}/artifact.tar deploy: environment: name: github-pages