From 6a54d571d253547a8970f3eb5dcef92764aae90d Mon Sep 17 00:00:00 2001 From: Sebastian Carmona Date: Tue, 14 Dec 2021 18:25:55 -0500 Subject: [PATCH] Add release workflow. --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..3bb6ca6 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Publish package to crates + +on: + release: + types: [created] + +jobs: + publish: + + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + - name: Publish to crates.io + uses: katyo/publish-crates@v1 + with: + registry-token: ${{ secrets.CARGO_TOKEN }}