Test building without publishing

This commit is contained in:
Alexander 2025-11-24 13:53:55 +01:00
parent 70ff0ef70b
commit 040ee533de

View File

@ -6,6 +6,15 @@ on:
# 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:
@ -16,8 +25,9 @@ jobs:
- 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
release: stable