From a2a5037084a70bc2d96f6855bed136f524f723b4 Mon Sep 17 00:00:00 2001 From: Albie Date: Tue, 5 Nov 2024 14:40:08 +0000 Subject: [PATCH] use github app for creating releases --- .github/workflows/publish.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 52f83e0..43046b0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,15 +14,20 @@ jobs: create-draft-release: name: Create Draft Release runs-on: ubuntu-latest - environment: release steps: + - id: app-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ vars.ONIONFRUIT_TEAM_CLIENT_ID }} + private-key: ${{ secrets.ONIONFRUIT_TEAM_CLIENT_KEY }} + - uses: softprops/action-gh-release@v2 with: draft: true prerelease: true generate_release_notes: true - token: ${{ secrets.USER_TOKEN }} + token: ${{ steps.app-token.outputs.token }} name: ${{ github.event.inputs.version }} tag_name: ${{ github.event.inputs.version }}