Skip to content

Commit 7587433

Browse files
committed
feat: add crates.io auto publish
1 parent 3e33ec0 commit 7587433

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,18 @@ jobs:
9393
with:
9494
files: |
9595
diff-coverage-${{ github.ref_name }}-${{ matrix.target }}.*
96+
97+
publish:
98+
runs-on: ubuntu-latest
99+
100+
environment: release
101+
permissions:
102+
id-token: write
103+
104+
steps:
105+
- uses: actions/checkout@v4
106+
- uses: rust-lang/crates-io-auth-action@v1
107+
id: auth
108+
- run: cargo publish
109+
env:
110+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "diff-coverage"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
edition = "2021"
55
description = "Diff-coverage, supercharged in Rust. Fast, memory-efficient coverage on changed lines for CI."
66
license = "MIT"

0 commit comments

Comments
 (0)