-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (45 loc) · 1.34 KB
/
Copy pathrelease.yml
File metadata and controls
54 lines (45 loc) · 1.34 KB
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: Manual Release
# Manual workflow dispatch only
on:
workflow_dispatch:
jobs:
release:
name: Manual Release to crates.io
runs-on: ubuntu-latest
environment:
name: release
url: https://crates.io/crates/rawsql
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust 1.81
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.81.0
components: rustfmt, clippy
override: true
- name: Verify rustc
run: rustc --version
- name: Cache Cargo registry & target
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-cache-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
- name: Install cargo-deny (fast)
uses: taiki-e/install-action@v2
with:
tool: cargo-deny
- name: Run CI checks
run: |
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all --all-features --verbose
cargo deny check licenses bans sources
- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish --allow-dirty