-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Upload artifacts | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
upload: | ||
name: Upload contract artifacts to GitHub Releases | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: ./.github/workflows/setup | ||
|
||
- name: Build contracts | ||
run: pnpm build | ||
|
||
- name: Create upload folder | ||
run: mkdir -p upload | ||
|
||
- name: Extract version from tag | ||
id: extract_version | ||
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT | ||
|
||
- name: Compress contract artifacts | ||
run: tar -czf "$FILEPATH" -C export/artifacts/contracts . | ||
env: | ||
FILEPATH: upload/rollups-contracts-${{ steps.extract_version.outputs.version }}-artifacts.tar.gz | ||
|
||
- name: Upload files to GitHub Releases | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: upload/* | ||
|