From b275ecfc595ac2dfa28298b94e139da54885df08 Mon Sep 17 00:00:00 2001 From: "B. Blechschmidt" Date: Sun, 20 Jul 2025 18:43:42 +0200 Subject: [PATCH] ci: add crate publication workflow --- .github/workflows/publish-crate.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/publish-crate.yml diff --git a/.github/workflows/publish-crate.yml b/.github/workflows/publish-crate.yml new file mode 100644 index 0000000..7ada83d --- /dev/null +++ b/.github/workflows/publish-crate.yml @@ -0,0 +1,21 @@ +name: Publish + +on: + push: + tags: + - 'v*.*.*' + workflow_dispatch: + +jobs: + publish: + name: Publish to crates.io + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - uses: actions/checkout@v4 + - uses: rust-lang/crates-io-auth-action@v1 + id: auth + - run: cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}