Skip to content

Commit fe7f010

Browse files
authored
chore(release): manual release (#9)
1 parent a50e8c1 commit fe7f010

3 files changed

Lines changed: 51 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rawsql"
3-
version = "0.1.1"
3+
version = "0.2.0"
44
authors = ["Manuel Alonso <manuel.alonso@protonmail.com>"]
55
license = "MIT"
66
description = "A rust library for reusing SQL"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# rawsql
33
A 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

0 commit comments

Comments
 (0)