Skip to content

Commit 15d3aef

Browse files
committed
feat: Add publish sgithub action
1 parent a0064b7 commit 15d3aef

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish to crates.io
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions-rs/toolchain@v1
13+
with:
14+
toolchain: stable
15+
override: true
16+
- name: Install cargo-edit
17+
run: cargo install cargo-edit
18+
- name: Set version from tag
19+
run: |
20+
version="${GITHUB_REF_NAME#v}"
21+
cargo set-version "$version"
22+
- name: Validate package before publishing
23+
run: cargo publish --dry-run --allow-dirty
24+
- run: cargo publish --allow-dirty
25+
env:
26+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# rquery-orm
22

3-
Lightweight ORM for Rust providing a LINQ-style query builder over SQL Server and PostgreSQL. It exposes a small set of traits and a derive macro so your structs become database entities, while all SQL is generated through a typed DSL.
3+
Lightweight ORM for Rust providing a SQL style query builder over SQL Server and PostgreSQL. It exposes a small set of traits and a derive macro so your structs become database entities, while all SQL is generated through a typed DSL.
44

55
## Connecting to the database
66
```rust

0 commit comments

Comments
 (0)