From 39893109f1576fa38e287fd0b9712d0064dae5f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Wed, 31 Jul 2024 08:14:20 +0300 Subject: [PATCH] chore(release): add release workflow (#140) --- .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..5f16caf --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,18 @@ +name: Release + +on: + release: + types: + - published + workflow_dispatch: + +jobs: + publish: + name: Publish on crates.io + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install toolchain + uses: dtolnay/rust-toolchain@stable + - name: Publish + run: cargo publish --locked --token ${{ secrets.CARGO_REGISTRY_TOKEN }}