Skip to content

ci: publish only to the stable channel for snap #16

ci: publish only to the stable channel for snap

ci: publish only to the stable channel for snap #16

name: Snapcraft Build
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v1
- name: Load dotenv
run: just bump-version
- name: Build snap package
uses: snapcore/action-build@v1
with:
path: public/packaging
id: snapcraft
# Push, on each tag, to the stable channel
- uses: snapcore/action-publish@v1
if: startsWith(github.ref, 'refs/tags/')
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
with:
snap: ${{ steps.snapcraft.outputs.snap }}
release: stable