We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e12a084 commit d23f155Copy full SHA for d23f155
.github/workflows/release.yml
@@ -0,0 +1,24 @@
1
+name: Release
2
+
3
+on:
4
+ workflow_dispatch:
5
+ push:
6
+ tags:
7
+ - 'v*'
8
9
+jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ # environment: release # Optional: for enhanced security
13
+ permissions:
14
+ id-token: write # Required for OIDC token exchange
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: rust-lang/crates-io-auth-action@v1
18
+ if: github.ref_type == 'tag'
19
+ id: auth
20
+ - uses: katyo/publish-crates@v2
21
+ with:
22
+ registry-token: ${{ steps.auth.outputs.token }}
23
+ dry-run: ${{ github.ref_type != 'tag' }}
24
+ ignore-unpublished-changes: true
0 commit comments