diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/snap.yaml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/snap.yaml b/.github/workflows/snap.yaml new file mode 100644 index 00000000..68cc8a72 --- /dev/null +++ b/.github/workflows/snap.yaml @@ -0,0 +1,26 @@ +name: snap +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: snapcore/action-build@v1 + id: build-snap + # Make sure the snap is installable + - run: | + sudo snap install --dangerous ${{ steps.build-snap.outputs.snap }} + # Do some testing with the snap + - run: | + sos help + - uses: snapcore/action-publish@v1 + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }} + with: + snap: ${{ steps.build-snap.outputs.snap }} + snapcraft-channel: "latest/edge" |