Skip to content

Commit ec5f95a

Browse files
author
Ubuntu
committed
chore: inline pages artifact upload
1 parent 87e3e20 commit ec5f95a

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/pages.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,24 @@ jobs:
4343
cp -R output/. .dist/output/
4444
fi
4545
46+
- name: Archive Pages artifact
47+
run: |
48+
tar \
49+
--dereference --hard-dereference \
50+
--directory .dist \
51+
-cvf "$RUNNER_TEMP/artifact.tar" \
52+
--exclude=.git \
53+
--exclude=.github \
54+
--exclude=".[^/]*" \
55+
.
56+
4657
- name: Upload Pages artifact
47-
uses: actions/upload-pages-artifact@v4
58+
uses: actions/upload-artifact@v7
4859
with:
49-
path: .dist
60+
name: github-pages
61+
path: ${{ runner.temp }}/artifact.tar
62+
retention-days: 1
63+
if-no-files-found: error
5064

5165
- name: Deploy to GitHub Pages
5266
id: deployment

0 commit comments

Comments
 (0)