From 5534160aaf48f7eefc786b5cafd479d4bf4b0625 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 4 Aug 2024 13:37:10 +0100 Subject: [PATCH] build: add release-plz ci --- .forgejo/workflows/push-main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .forgejo/workflows/push-main.yml diff --git a/.forgejo/workflows/push-main.yml b/.forgejo/workflows/push-main.yml new file mode 100644 index 00000000..b30f1757 --- /dev/null +++ b/.forgejo/workflows/push-main.yml @@ -0,0 +1,32 @@ +name: Release Please + +permissions: + pull-requests: write + contents: write + +on: + push: + branches: + - main + +env: + CARGO_TERM_COLOR: always + +jobs: + release-plz: + name: Release-plz + runs-on: docker + 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: https://git.kemitix.net/kemitix/release-plz-action@dev + with: + backend: gitea + env: + GITHUB_TOKEN: ${{ secrets.FORGEJO_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}