Skip to content

Commit ed3e53e

Browse files
dhardynwalfield
authored andcommitted
Copy release.yml from master
1 parent 714d312 commit ed3e53e

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish to crates.io and create GitHub release
2+
on:
3+
push:
4+
tags: ['[0-9].[0-9].*', '[0-9].[1-9][0-9].*']
5+
jobs:
6+
# Source: https://crates.io/docs/trusted-publishing
7+
publish:
8+
runs-on: ubuntu-latest
9+
environment: release
10+
permissions:
11+
id-token: write
12+
steps:
13+
- uses: actions/checkout@v6
14+
- uses: rust-lang/crates-io-auth-action@v1
15+
id: auth
16+
- run: cargo publish
17+
env:
18+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)