Skip to content

Commit

Permalink
use github app for creating releases
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell authored Nov 5, 2024
1 parent 46daf34 commit a2a5037
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit a2a5037

Please sign in to comment.