Skip to content

Commit

Permalink
ci: use a PAT token to trigger the snap release (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
florianvazelle authored Feb 24, 2024
1 parent ff9d4d9 commit 03680e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ jobs:
run: just ci-publish
env:
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT }}
4 changes: 2 additions & 2 deletions .github/workflows/snapcraft-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
pull_request:
# Build and publish on release
release:
types: [created]
types: [published]

jobs:
build:
Expand All @@ -31,7 +31,7 @@ jobs:

# Push, on each release, to the stable channel
- uses: snapcore/action-publish@v1
if: ${{ env.GITHUB_EVENT_NAME == 'release' }}
if: ${{ env.GITHUB_EVENT_NAME == 'release' || (env.GITHUB_EVENT_NAME == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/')) }}
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
with:
Expand Down

0 comments on commit 03680e4

Please sign in to comment.