Skip to content

Commit 6b6e11d

Browse files
ci: Add Release workflow
This uses the [auto-release] crate to create a new crates.io release and push a github tag. The [Trusted Publishing] feature is used to provide the crates.io token. [auto-release]: https://crates.io/crates/auto-release [Trusted Publishing]: https://blog.rust-lang.org/2025/07/11/crates-io-development-update-2025-07/
1 parent 75cf3e0 commit 6b6e11d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
name: Release
7+
8+
permissions:
9+
# Required for pushing the release tag.
10+
contents: write
11+
# Required for crates.io Trusted Publishing.
12+
id-token: write
13+
14+
jobs:
15+
release:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: rust-lang/crates-io-auth-action@v1
20+
id: auth
21+
- run: cargo install auto-release
22+
- run: auto-release -p printf-compat --condition subject
23+
env:
24+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)