Skip to content
Merged
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
15 changes: 13 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,16 @@ jobs:
- name: Build
run: pnpm build

# upload-artifact rejects file names containing characters such as ">"
# (e.g. tokens/cp0xlrt->wsteth.svg), so the site travels as one tarball.
- name: Pack site
run: tar -cf site.tar -C public .

- name: Upload site artifact
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: site
path: public
path: site.tar
if-no-files-found: error
retention-days: 3

Expand Down Expand Up @@ -97,7 +102,13 @@ jobs:
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: site
path: site/public
path: site

- name: Unpack site
run: |
mkdir -p site/public
tar -xf site/site.tar -C site/public
rm site/site.tar

# No checkout here, so wrangler is installed at a pinned version and branch
# and commit are passed explicitly instead of being read from the working tree.
Expand Down
Loading