Skip to content

Commit f87b125

Browse files
committed
release: add crates.io publishing workflow
1 parent 8793607 commit f87b125

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/publish-rust.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish Rust crate
2+
3+
on:
4+
push:
5+
tags:
6+
- "rust-v*"
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
publish:
14+
name: Publish datafog-core to crates.io
15+
runs-on: ubuntu-latest
16+
environment: crates-io
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: dtolnay/rust-toolchain@stable
20+
- run: cargo publish --package datafog-core --locked
21+
env:
22+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

crates/core/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
name = "datafog-core"
33
version = "0.1.0"
44
edition = "2024"
5+
rust-version = "1.85"
56
description = "Fast structured PII detection library"
67
license = "MIT"
8+
homepage = "https://datafog.ai"
79
repository = "https://github.com/DataFog/datafog-core"
10+
readme = "../../README.md"
811
keywords = ["pii", "privacy", "detection"]
912
categories = ["text-processing"]
1013

0 commit comments

Comments
 (0)