forked from rscarson/rustyscript
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (28 loc) · 803 Bytes
/
publish.yml
File metadata and controls
39 lines (28 loc) · 803 Bytes
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
name: Publish
on:
workflow_dispatch:
jobs:
check_docs:
uses: ./.github/workflows/docs.yml
check_examples:
uses: ./.github/workflows/examples.yml
check_linter:
uses: ./.github/workflows/linter.yml
check_op_whitelist:
uses: ./.github/workflows/op_whitelist.yml
check_tests:
uses: ./.github/workflows/tests.yml
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Run tests
run: cargo test --all --locked
- name: Dry run publish
run: cargo publish --dry-run --locked
- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish --locked