From 4b1d4cae376659f8686f0906d361d26b59faf4f5 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Sat, 4 May 2024 17:03:19 +1000 Subject: [PATCH 1/3] Create release-pr.yml --- .github/workflows/release-pr.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release-pr.yml diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml new file mode 100644 index 0000000..d83a48c --- /dev/null +++ b/.github/workflows/release-pr.yml @@ -0,0 +1,25 @@ +name: Release-plz + +permissions: + pull-requests: write + contents: write + +on: workflow_dispatch + +jobs: + release-plz: + name: Release-plz + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + - name: Run release-plz + uses: MarcoIeni/release-plz-action@v0.5 + with: + command: release-pr + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From b433287119e2c54760fc82e759610021d606613b Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Sat, 4 May 2024 17:03:58 +1000 Subject: [PATCH 2/3] Create release.yml --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 0000000..c8d9a3b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Release-plz + +permissions: + pull-requests: write + contents: write + +on: + push: + branches: + - main + +jobs: + release-plz: + name: Release-plz + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + - name: Run release-plz + uses: MarcoIeni/release-plz-action@v0.5 + with: + command: release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} From 27f794e55cc9092a0fa9cf9d7c17a5342e7a741a Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Sat, 4 May 2024 17:08:22 +1000 Subject: [PATCH 3/3] Update name of release-pr.yml --- .github/workflows/release-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index d83a48c..090b7da 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -1,4 +1,4 @@ -name: Release-plz +name: Open release pr permissions: pull-requests: write