-
Notifications
You must be signed in to change notification settings - Fork 105
41 lines (35 loc) · 970 Bytes
/
crates-io.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
name: Crates IO
on:
workflow_dispatch:
inputs:
publish:
description: "If publish packages"
type: boolean
default: false
version:
description: "Workspace version to publish"
required: true
type: string
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: short
TERM: xterm-256color
jobs:
check:
runs-on: ubuntu-latest
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
steps:
- name: "ACTIONS: Checkout"
uses: actions/checkout@v4
- name: "Install: Rust stable toolchain"
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
components: llvm-tools
- name: "Check packages"
if: ${{ !inputs.publish }}
run: cargo run -p crates-io check
- name: "Publish packages"
if: ${{ inputs.publish }}
run: cargo run -p crates-io publish -v ${{ inputs.version }}