Skip to content

change versions back to v2.5.0 (#882) #12

change versions back to v2.5.0 (#882)

change versions back to v2.5.0 (#882) #12

name: Release contracts
permissions:
contents: write
on:
push:
tags:
- "v*"
branches:
- main
- ci/release-contracts
jobs:
release:
runs-on: ubuntu-latest
container: cosmwasm/optimizer:0.16.0
steps:
- uses: actions/checkout@v3
# tar is required for cargo cache
- run: apk add --no-cache tar
- name: Set up cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Compile contracts
timeout-minutes: 30
run: optimize.sh .
- name: Upload contracts
uses: actions/upload-artifact@v3
with:
name: contracts
path: artifacts/
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: artifacts/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}