From db4a56319eaa0e70bd7880248440578e29044e7c Mon Sep 17 00:00:00 2001 From: Keshav Priyadarshi Date: Wed, 12 Nov 2025 17:49:01 +0530 Subject: [PATCH] Add workflow to publish release on tag Signed-off-by: Keshav Priyadarshi --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..f777992 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Create GitHub release and publish on Crates.io + +on: + workflow_dispatch: + push: + tags: + - "v*.*.*" + +jobs: + publish: + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write + steps: + - uses: actions/checkout@v5 + - uses: rust-lang/crates-io-auth-action@v1 + id: auth + - run: cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} + + - name: Create a GitHub release + uses: softprops/action-gh-release@v2 + with: + generate_release_notes: true + draft: false \ No newline at end of file