From 77468c24b8a2e7024ac3315430b193c6fd849a8c Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Sat, 11 Oct 2025 11:59:36 +0200 Subject: [PATCH] ci: add GitHub Actions for automated release handling Add a new workflow file to automate releases using the release-please GitHub Action. Configure permissions for writing contents and pull requests, and set up necessary steps to obtain a GitHub App token and run the release. This streamlines the release process and ensures timely updates to the project. --- .github/workflows/release-please.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..40f33a2 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,27 @@ +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - name: Get token + id: get_token + uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2 + with: + app-id: ${{ vars.RELEASE_PLEASE_APP_ID }} + private-key: ${{ secrets.RELEASE_PLEASE_PRIVATE_KEY }} + owner: ${{ github.repository_owner }} + - uses: googleapis/release-please-action@c2a5a2bd6a758a0937f1ddb1e8950609867ed15c # v4 + with: + token: ${{ steps.get_token.outputs.token }} + config-file: release-please-config.json + manifest-file: .release-please-manifest.json