Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions content/en/host-and-deploy/host-on-github-pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down