Skip to content

Commit

Permalink
ci: enable snapcraft upload
Browse files Browse the repository at this point in the history
Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
  • Loading branch information
xmkg committed Jun 27, 2024
1 parent 8e89694 commit ae1853b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/snapstore-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches:
- main # this will go to the `edge` channel
- '*'
tags:
- v202* # will go to the `beta` channel
permissions:
Expand Down Expand Up @@ -41,19 +40,15 @@ jobs:
# (that I'm aware of) getting the exit code when process
# substition is used.
hotkdump 2> >(grep "usage" || echo "fail") | grep -v "fail"
- name: Publish to the `edge` channel
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN_EDGE }}
if: github.ref == 'refs/heads/main'
run: |
snapcraft whoami
echo "publish-edge"
snapcraft upload --release edge ./hotkdump*.snap
- name: Publish to the `beta` channel
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN_BETA }}
if: startsWith(github.event.ref, 'refs/tags/v202')
run: |
snapcraft whoami
echo "publish-beta"
snapcraft upload --release beta ./hotkdump*.snap

0 comments on commit ae1853b

Please sign in to comment.