Release 0.4.0 #40
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
name: Artifacts | |
on: | |
push: | |
branches: | |
- master | |
- main | |
tags: | |
- "v*.*.*" | |
pull_request: | |
branches: | |
- master | |
- main | |
workflow_dispatch: | |
env: | |
RUST_BACKTRACE: 1 | |
CARGO_TERM_COLOR: always | |
jobs: | |
artifacts: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install cargo make | |
uses: davidB/rust-cargo-make@v1 | |
- name: Compile contracts to wasm | |
run: cargo make rust-optimizer | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifacts | |
path: artifacts/ | |
- name: Add artifacts to release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: artifacts/* | |
token: ${{ secrets.GITHUB_TOKEN }} |