chore: Release #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' }} |