From 2852f4dc2ec01b444fd3edae072db025cae239a6 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Sat, 11 Nov 2023 17:36:01 -0500 Subject: [PATCH] github: Add release workflow --- .github/workflows/release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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 000000000..072de0164 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +# This workflow runs when commits are pushed to main or a branch starting with +# "version-". It checks if any packages require a new release, and if so, +# creates the crates.io release and git tag. +name: Release +on: + push: + branches: + - main + - version-* +permissions: + contents: write +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: Swatinem/rust-cache@v2 + - run: cargo xtask auto-release + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}