Skip to content

fix contracts makefile #27

fix contracts makefile

fix contracts makefile #27

Workflow file for this run

name: Provwasm Smart Contract Binary Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
- "v[0-9]+.[0-9]+.[0-9]+-rc*" # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-rc5
- "v[0-9]+.[0-9]+.[0-9]+-beta*" # Push events to matching v*, i.e. v1.0.0-beta2
jobs:
# This action cleans up previously running instances of a workflow on the same branch. This accomplishes
# the task of automatically cancelling CI runs on pushes to the same branch, which is a common feature in
# most CI systems but currently not possible with GitHub actions.
cleanup_runs:
runs-on: ubuntu-latest
name: Cleanup Workflows
steps:
- uses: rokroskar/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"
create_release:
runs-on: ubuntu-latest
name: Create Release
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Add wasm32 target
run: |
rustup target add wasm32-unknown-unknown
- name: Build wasm binaries
run: |
make contracts
- name: Create release
uses: softprops/action-gh-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ${{ github.ref_name }}
draft: false
prerelease: false
body_path: RELEASE_CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }}
files: |
**/artifacts/*.wasm