-
Notifications
You must be signed in to change notification settings - Fork 16
54 lines (45 loc) · 1.43 KB
/
release-async-wasi.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
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