yq/.github/workflows/snap-release.yml
2025-11-24 13:53:55 +01:00

34 lines
841 B
YAML

name: Release Snap
on:
release:
types: [released]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
publish:
description: "Publish to snap store"
required: false
default: "false"
type: choice
options:
- "true"
- "false"
jobs:
buildSnap:
environment: snap
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: snapcore/action-build@v1
id: build
- uses: snapcore/action-publish@v1
if: ${{ github.event_name == 'release' || github.event.inputs.publish == 'true' }}
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{ steps.build.outputs.snap }}
release: stable