-
Notifications
You must be signed in to change notification settings - Fork 24
41 lines (34 loc) · 1.16 KB
/
check-publish.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: check-publish
# This workflow checks if the libraries can be published on crates.io.
permissions:
contents: read
on:
push:
branches: [ main, release/* ]
pull_request:
branches: [ main, release/* ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
check-publish:
name: Check publish on crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""
- name: Check motsu-proc
run: cargo publish -p motsu-proc --dry-run
- name: Check motsu
run: cargo publish -p motsu --dry-run
- name: Check openzeppelin-crypto
run: cargo publish -p openzeppelin-crypto --target wasm32-unknown-unknown --dry-run
- name: Check openzeppelin-stylus-proc
run: cargo publish -p openzeppelin-stylus-proc --target wasm32-unknown-unknown --dry-run
- name: Check openzeppelin-stylus
run: cargo publish -p openzeppelin-stylus --target wasm32-unknown-unknown --dry-run