Skip to content

Commit e4b8a2e

Browse files
committed
fix: update GitHub Actions workflow to create and upload Pages artifact correctly
1 parent b6c6b6d commit e4b8a2e

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/docs.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,22 @@ jobs:
4343

4444
- uses: actions/configure-pages@v5
4545

46-
- uses: actions/upload-pages-artifact@v4
46+
- name: Create Pages artifact
47+
run: |
48+
tar \
49+
--dereference --hard-dereference \
50+
--directory site/build \
51+
-cvf "$RUNNER_TEMP/artifact.tar" \
52+
--exclude=.git \
53+
--exclude=.github \
54+
.
55+
56+
- uses: actions/upload-artifact@v4
4757
with:
48-
path: site/build
49-
include-hidden-files: true
58+
name: github-pages
59+
path: ${{ runner.temp }}/artifact.tar
60+
if-no-files-found: error
61+
retention-days: 1
5062

5163
- name: Deploy to GitHub Pages
5264
id: deployment

0 commit comments

Comments
 (0)