Skip to content

Commit

Permalink
generate an app token to create a release
Browse files Browse the repository at this point in the history
  • Loading branch information
busma13 committed Jan 14, 2025
1 parent d47b478 commit 724a9b7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/publish-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,19 @@ jobs:
echo "version_updated=false" >> $GITHUB_OUTPUT
fi
- name: Generate a token
if: steps.version_check.outputs.version_updated == 'true'
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.RELEASES_APP_ID }}
private-key: ${{ secrets.RELEASES_PRIVATE_KEY }}

- name: Create Release
if: steps.version_check.outputs.version_updated == 'true'
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_RELEASE_PAT }}
token: ${{ steps.generate-token.outputs.token }}
prerelease: true
tag_name: ${{ steps.version_check.outputs.tag }}
name: ${{ steps.version_check.outputs.tag }}
Expand Down

0 comments on commit 724a9b7

Please sign in to comment.