-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (38 loc) · 1.09 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
name: Create and Upload Release
on:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
RUST_VERSION: 1.78
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust toolchain
shell: bash
run: |
rustup toolchain install ${{ env.RUST_VERSION }} --component rustfmt
rustup default ${{ env.RUST_VERSION }}
- name: Install Wasm Rust target
run: rustup target add wasm32-wasi && rustup target add wasm32-unknown-unknown
- name: Create archive
run: cargo run -- archive
- name: Upload release artifact
uses: actions/upload-artifact@v4
with:
name: tests
path: tests.tar.gz
- name: Recreate canary release
uses: ncipollo/release-action@v1.14.0
with:
tag: canary
allowUpdates: true
prerelease: true
artifacts: "tests.tar.gz"
commit: ${{ github.sha }}
body: |
This is a "canary" release of the most recent commits on our main branch. Canary is **not stable**.