Skip to content

Commit 34771a8

Browse files
committed
fix: docs deployment
1 parent 0379779 commit 34771a8

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

‎.github/workflows/docs.yml‎

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,25 @@ jobs:
5353
unzip -q docs.zip -d pages
5454
touch pages/.nojekyll
5555
56+
- name: Archive GitHub Pages artifact
57+
run: |
58+
tar \
59+
--dereference --hard-dereference \
60+
--directory pages \
61+
-cf "$RUNNER_TEMP/artifact.tar" \
62+
--exclude=.git \
63+
--exclude=.github \
64+
.
65+
66+
# upload-pages-artifact uses an unpinned upload-artifact reference internally,
67+
# so create its expected artifact directly to satisfy the organization policy.
5668
- name: Upload GitHub Pages artifact
57-
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
69+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5870
with:
59-
path: pages
71+
name: github-pages
72+
path: ${{ runner.temp }}/artifact.tar
73+
retention-days: 1
74+
if-no-files-found: error
6075

6176
- name: Deploy to GitHub Pages
6277
id: deployment

0 commit comments

Comments
 (0)