Skip to content

Commit

Permalink
add snap auth
Browse files Browse the repository at this point in the history
  • Loading branch information
matuskosut committed Oct 31, 2021
1 parent b7ad65b commit f777925
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/snappublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ jobs:
# https://circleci.com/docs/2.0/build-publish-snap-packages/
- name: Publish snap
env:
SNAPCRAFT_LOGIN_FILE: ${{ secrets.SNAPCRAFT_TOKEN }}
run: |
mkdir .snapcraft
echo $SNAPCRAFT_TOKEN | base64 --decode --ignore-garbage > .snapcraft/snapcraft.cfg
echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > .snapcraft/snapcraft.cfg
snapcraft push *.snap --release edge
# [[ "${GITHUB_REF}" =~ refs/tags/$(cat VERSION) ]] && snapcraft push *.snap --release edge || echo "not publishing"
shell: bash

0 comments on commit f777925

Please sign in to comment.