Skip to content

Commit

Permalink
upload snap as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
matuskosut committed Oct 31, 2021
1 parent f777925 commit 4719b94
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/snappublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,19 @@ jobs:
run: |
sg lxd -c 'snapcraft --use-lxd'
# 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_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
- uses: actions/upload-artifact@v2
with:
name: jujuna
path: |
jujuna*.snap
# 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_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 4719b94

Please sign in to comment.