-
Notifications
You must be signed in to change notification settings - Fork 5
65 lines (61 loc) · 2.18 KB
/
releases.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Releases
on:
push:
tags:
- "v*"
workflow_dispatch:
env:
RUST_BACKTRACE: 1
CARGO_NET_GIT_FETCH_WITH_CLI: true
RUST_LOG: info,xtask=debug
jobs:
publish-to-wapm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install WebAssembly targets
run: rustup target add wasm32-unknown-unknown wasm32-wasi
- name: Setup Wasmer
uses: wasmerio/setup-wasmer@v1
- name: Install cargo-wasmer
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-wasmer --verbose --debug --version '^0.4' --locked
- name: Login to wasmer.wtf
run: |
wasmer config set registry.url https://registry.wasmer.wtf
wasmer login ${{ secrets.WAPM_DEV_TOKEN }}
- name: Publish to wasmer.wtf
run: cargo wasmer --package wasmer-pack-cli --package wasmer-pack-wasm
continue-on-error: ${{ github.event_name == 'workflow_dispatch' }}
- name: Update the bindings generator on wapm.dev
uses: actions-rs/cargo@v1
with:
command: xtask
args: set-generator wasmer/wasmer-pack-cli
env:
REGISTRY: https://registry.wasmer.wtf/graphql
TOKEN: ${{ secrets.WAPM_DEV_TOKEN }}
VERSION: latest
continue-on-error: ${{ github.event_name == 'workflow_dispatch' }}
- name: Login to wasmer.io
run: |
wasmer config set registry.url https://registry.wasmer.io
wasmer login ${{ secrets.WAPM_PROD_TOKEN }}
- name: Publish to wasmer.io
run: cargo wasmer --package wasmer-pack-cli --package wasmer-pack-wasm
continue-on-error: ${{ github.event_name == 'workflow_dispatch' }}
- name: Update the bindings generator on wasmer.io
uses: actions-rs/cargo@v1
with:
command: xtask
args: set-generator wasmer/wasmer-pack-cli
env:
REGISTRY: https://registry.wasmer.io/graphql
TOKEN: ${{ secrets.WAPM_PROD_TOKEN }}
VERSION: latest
COMMAND: wasmer-pack
continue-on-error: ${{ github.event_name == 'workflow_dispatch' }}