Skip to content

Release async-wasi crate #9

Release async-wasi crate

Release async-wasi crate #9

name: Release async-wasi crate
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
on: workflow_dispatch
jobs:
release_async_wasi:
name: Release async-wasi crate
runs-on: ubuntu-22.04
container:
image: wasmedge/wasmedge:ubuntu-build-clang
steps:
- name: Checkout WasmEdge Rust SDK
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Rust v1.75
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.75
- name: Dry run cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRIES_ASYNC_WASI_TOKEN }}
shell: bash
run: |
cargo publish --dry-run -p async-wasi
- name: Publish
if: github.ref == 'refs/heads/main'
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRIES_ASYNC_WASI_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
cargo publish -p async-wasi
- name: Build API document
run: |
cargo doc -p async-wasi --no-deps --target-dir=./target
- name: Deploy API document
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: target/doc
force_orphan: true