File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Manual Release
2+
3+ # Manual workflow dispatch only
4+ on :
5+ workflow_dispatch :
6+
7+ jobs :
8+ release :
9+ name : Manual Release to crates.io
10+ runs-on : ubuntu-latest
11+ environment :
12+ name : release
13+ url : https://crates.io/crates/rawsql
14+
15+ steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v4
18+
19+ - name : Install Rust 1.81
20+ uses : actions-rs/toolchain@v1
21+ with :
22+ profile : minimal
23+ toolchain : 1.81.0
24+ components : rustfmt, clippy
25+ override : true
26+
27+ - name : Verify rustc
28+ run : rustc --version
29+
30+ - name : Cache Cargo registry & target
31+ uses : actions/cache@v4
32+ with :
33+ path : |
34+ ~/.cargo/registry
35+ ~/.cargo/git
36+ target
37+ key : cargo-cache-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
38+
39+ - name : Run CI checks
40+ run : |
41+ cargo fmt --all -- --check
42+ cargo clippy --all-targets --all-features -- -D warnings
43+ cargo test --all --all-features --verbose
44+ cargo deny check licenses bans advisories sources
45+
46+ - name : Publish to crates.io
47+ env :
48+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
49+ run : cargo publish --allow-dirty
Original file line number Diff line number Diff line change 11[package ]
22name = " rawsql"
3- version = " 0.1.1 "
3+ version = " 0.2.0 "
44authors = [" Manuel Alonso <manuel.alonso@protonmail.com>" ]
55license = " MIT"
66description = " A rust library for reusing SQL"
Original file line number Diff line number Diff line change 22# rawsql
33A rust library for * using* and * reusing* SQL.
44
5- [ ![ Build Status ] ( https://travis-ci.org/manute/rawsql.svg?branch=master )] ( https://travis-ci.org/manute/rawsql ) [ ![ Latest Version] ( https://img.shields.io/crates/v/rawsql.svg )] ( https://crates.io/crates/rawsql )
5+ [ ![ Latest Version] ( https://img.shields.io/crates/v/rawsql.svg )] ( https://crates.io/crates/rawsql )
66
77* is heavily influenced by [ yesql] ( https://github.com/krisajenkins/yesql ) (many thanks @krisajenkins )*
88
You can’t perform that action at this time.
0 commit comments