From ebe7bbca31b3fbcb68407c6a0be6040cfcb8bd14 Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Wed, 10 Jun 2026 13:37:59 +0000 Subject: [PATCH] Add release.yml --- .github/workflows/release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..57c40d0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,18 @@ +name: Publish to crates.io and create GitHub release +on: + push: + tags: ['[0-9].[0-9].*', '[0-9].[1-9][0-9].*'] + +jobs: + publish: + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write + steps: + - uses: actions/checkout@v6 + - uses: rust-lang/crates-io-auth-action@v1 + id: auth + - run: cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}