diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6ab54e2 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +name: Release + +on: + push: + branches: [main] + +permissions: + contents: write + pull-requests: write + +jobs: + release-plz: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - uses: dtolnay/rust-toolchain@stable + + - uses: MarcoIeni/release-plz-action@v0.5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/release-plz.toml b/release-plz.toml new file mode 100644 index 0000000..62e18d0 --- /dev/null +++ b/release-plz.toml @@ -0,0 +1,15 @@ +[workspace] +# Only release the patchbay crate (not runner, vm, cli, server, utils). +release = false +publish = false + +[changelog] +# Use the existing cliff.toml for changelog generation. +config = "cliff.toml" + +[[package]] +name = "patchbay" +release = true +publish = true +# Tag format matching existing convention. +git_tag_name = "patchbay-v{{ version }}"