Skip to content

Snap Package

Snap Package #21

Workflow file for this run

name: Snap Package
on:
workflow_dispatch:
inputs:
branch:
description: 'Name of the Git branch / tag to build.'
required: true
default: 'master'
release-channel:
description: 'Channel on the Snap Store to push to (e.g: latest/stable/bug-fix)'
required: true
default: 'latest/beta'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
- uses: snapcore/action-build@v1
id: build
with:
path: installer/snap
- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
with:
snap: ${{ steps.build.outputs.snap }}
release: ${{ github.event.inputs.release-channel }}