From f77792587e569702bb013c6f24ebd54fbad1bc0f Mon Sep 17 00:00:00 2001 From: Matus Kosut Date: Sun, 31 Oct 2021 16:11:24 +0100 Subject: [PATCH] add snap auth --- .github/workflows/snappublish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/snappublish.yml b/.github/workflows/snappublish.yml index 19000b5..98c1c29 100644 --- a/.github/workflows/snappublish.yml +++ b/.github/workflows/snappublish.yml @@ -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