diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..072de016 --- /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 }}