From 6a4a31231bb01be616c42643148e3f1fc83361ff Mon Sep 17 00:00:00 2001 From: Anthony Griffon Date: Mon, 8 Jan 2024 15:01:04 +0100 Subject: [PATCH] misc(ci): add release-plz action Signed-off-by: Anthony Griffon --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ release-plz.toml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 release-plz.toml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..a0381db9 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release + +permissions: + pull-requests: write + contents: write + +on: + push: + branches: + - master + +jobs: + release-plz: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + token: ${{ github.token }} + fetch-depth: 0 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Run release-plz + uses: MarcoIeni/release-plz-action@v0.5.34 + env: + GITHUB_TOKEN: ${{ github.token }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_TOKEN }} diff --git a/release-plz.toml b/release-plz.toml new file mode 100644 index 00000000..b87077eb --- /dev/null +++ b/release-plz.toml @@ -0,0 +1,33 @@ +[workspace] +allow_dirty = false +changelog_update = true +dependencies_update = true +git_release_enable = false +pr_labels = ["release"] +publish_allow_dirty = false +semver_check = true +publish_timeout = "10m" + +[[package]] +name = "monoio" +changelog_include = ["monoio-macros"] +changelog_path = "CHANGELOG.md" +changelog_update = true +git_release_enable = true +publish = true + +[[package]] +name = "monoio-macros" +changelog_include = [] +changelog_path = "monoio-macros/CHANGELOG.md" +changelog_update = true +git_release_enable = true +publish = true + +[[package]] +name = "monoio-compat" +changelog_include = [] +changelog_path = "monoio-compat/CHANGELOG.md" +changelog_update = true +git_release_enable = true +publish = true