Skip to content

Commit 07c9529

Browse files
authored
chore: setup for crates.io publishing (#1)
1 parent 40d6904 commit 07c9529

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @tailor-platform/maintainers-cloud-sql-connector-rs

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish to crates.io
2+
3+
on:
4+
push:
5+
tags: ["v*"]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
contents: read
13+
steps:
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
15+
- uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # stable
16+
with:
17+
toolchain: stable
18+
- uses: rust-lang/crates-io-auth-action@bbd81622f20ce9e2dd9622e3218b975523e45bbe # v1.0.4
19+
id: auth
20+
- run: cargo publish
21+
env:
22+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
[package]
2-
name = "cloud-sql-connector"
2+
name = "cloudsqlconn"
33
version = "0.1.0"
44
edition = "2024"
55
description = "Cloud SQL connector for Rust"
66
license = "MIT"
7+
readme = "README.md"
78
repository = "https://github.com/tailor-platform/cloud-sql-connector-rs"
89

910
[dependencies]

0 commit comments

Comments
 (0)