Skip to content

Commit

Permalink
Use a dedicated secret so that tagging latest can trigger builds that…
Browse files Browse the repository at this point in the history
… will update the release
  • Loading branch information
ColinPitrat committed Feb 13, 2025
1 parent 9e9d0c1 commit d5448cc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ jobs:
# Linux build is responsible for pushing the latest tag.
# MacOS & Windows build will create the release and upload artifacts to it
# when they'll be called to build the tag itself.
#
# We have to use a dedicated access token because events raised by workflows
# using GITHUB_TOKEN do not trigger other workflows:
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#about-workflow-events
# To create the token, see:
# https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token
# And then to create the secret containing it, see:
# https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository
- if: github.ref_name == 'master'
uses: dev-drprasad/[email protected]
with:
Expand All @@ -44,4 +52,4 @@ jobs:
if: github.ref_name == 'master'
with:
tag: latest
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token: ${{ secrets.LATEST_TOKEN }}

0 comments on commit d5448cc

Please sign in to comment.