-
Notifications
You must be signed in to change notification settings - Fork 9
50 lines (42 loc) · 1.23 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml
# on: [pull_request]
on:
push:
tags:
- '*'
name: Release artifacts
jobs:
release:
name: Build Release Artifacts
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.70.0
target: wasm32-unknown-unknown
override: true
- name: Build schemas
run: ./devtools/build_schemas.sh
# This must go after the other cargo commands, as it writes lots of stuff to
# target/ with root permissions (from docker)
- name: Build Wasm images
uses: addnab/docker-run-action@v3
with:
image: cosmwasm/optimizer:0.15.0
options: -v ${{ github.workspace }}:/code
run: optimize.sh .
- name: Create release
uses: softprops/action-gh-release@v1
id: create_release
with:
draft: false
prerelease: false
body_path: RELEASE_NOTES.md
tag_name: ${{ github.ref }}
files: |
artifacts/*
schemas/*