From 56293f0a333700996afffcf572f16bb86519b63b Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Wed, 11 Jun 2025 01:41:34 +0000 Subject: [PATCH] ci: Switch to release-plz for managing releases --- .github/workflows/{main.yml => main.yaml} | 0 .github/workflows/publish.yaml | 25 +++++++++++++++++++++++ .github/workflows/publish.yml | 17 --------------- 3 files changed, 25 insertions(+), 17 deletions(-) rename .github/workflows/{main.yml => main.yaml} (100%) create mode 100644 .github/workflows/publish.yaml delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yaml similarity index 100% rename from .github/workflows/main.yml rename to .github/workflows/main.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..d6f1dc3 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,25 @@ +name: Release-plz + +permissions: + pull-requests: write + contents: write + +on: + push: { branches: [main] } + +jobs: + release-plz: + name: Release-plz + runs-on: ubuntu-24.04 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install Rust (rustup) + run: rustup update nightly --no-self-update && rustup default nightly + - name: Run release-plz + uses: MarcoIeni/release-plz-action@v0.5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 425906d..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Publish -on: - release: - types: [created] - -jobs: - publish: - name: Publish to crates.io - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Install Rust (rustup) - run: rustup update stable && rustup default stable - - name: Publish - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} - run: cargo publish