Skip to content

Commit

Permalink
ci: add release workflow and artifacts upload (#728)
Browse files Browse the repository at this point in the history
* add release workflow and artifacts upload

* fix trunk

* trunk ignore
  • Loading branch information
d-roak authored Feb 6, 2024
1 parent e25ed1a commit 358dcc4
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
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

0 comments on commit 358dcc4

Please sign in to comment.