generated from keep-starknet-strange/alexandria
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add release workflow and artifacts upload (#728)
* add release workflow and artifacts upload * fix trunk * trunk ignore
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# trunk-ignore-all(checkov/CKV2_GHA_1) | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-and-upload: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Set up Scarb | ||
uses: software-mansion/setup-scarb@v1 | ||
- name: Build contracts | ||
run: | | ||
scarb build -p contracts | ||
- name: Zip dev artifacts | ||
run: zip -r dev-artifacts.zip target/dev | ||
- name: Upload artifacts to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: dev-artifacts.zip | ||
asset_name: dev-artifacts.zip | ||
tag: ${{ github.ref_name }} | ||
overwrite: true |