forked from opentargets/gentropy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(release): use github app token for tag push (opentargets#709)
- Loading branch information
1 parent
fda6b5a
commit 19ca45e
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,14 +34,15 @@ jobs: | |
fetch-depth: 0 | ||
repository: opentargets/gentropy | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
persist-credentials: false | ||
|
||
- name: Python Semantic Release | ||
id: semrelease | ||
# v9.6.0 is required due to the python v3.12 in the newer version of semantic release action which | ||
# breaks the poetry build command. | ||
uses: python-semantic-release/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
github_token: ${{ steps.trigger-token.outputs.token }} | ||
|
||
- name: Publish package to GitHub Release | ||
uses: python-semantic-release/upload-to-gh-release@main | ||
|
@@ -51,7 +52,7 @@ jobs: | |
# requires using GH_APP to authenitcate, otherwise push authorised with | ||
# the GITHUB_TOKEN does not trigger the tag artifact workflow. | ||
# see https://github.com/actions/create-github-app-token | ||
github_token: ${{ steps.trigger-token.outputs.token }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ steps.semrelease.outputs.tag }} | ||
|
||
- name: Store the distribution packages | ||
|