-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.16 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
name: Release Artifacts
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. 1.0, 20.15.10
- "v[0-9]+.[0-9]+.[0-9]+-rc*" # Push events to matching v*, i.e. 1.0-rc1, 20.15.10-rc5
jobs:
release-artifacts:
runs-on: ubuntu-latest
strategy:
matrix:
rust-version: [1.78.0]
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust-version }}
target: wasm32-unknown-unknown
override: true
- name: Build release
run: |
make build
- name: Generate checksums
run: |
cd target/wasm32-unknown-unknown/release/
sha256sum *.wasm > checksums.txt
- name: Release
env:
GH_TOKEN: ${{ secrets.JAKUB_SECRET_CI }}
run: >-
gh release create ${{ github.ref_name }}
target/wasm32-unknown-unknown/release/*.wasm
target/wasm32-unknown-unknown/release/checksums.txt
--generate-notes
--title "${{ github.ref_name }}"