From 040ee533de4385931c657a5624b5ad6fcf5be48f Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 24 Nov 2025 13:53:55 +0100 Subject: [PATCH] Test building without publishing --- .github/workflows/snap-release.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/snap-release.yml b/.github/workflows/snap-release.yml index 43bc1d50..6d1adad2 100644 --- a/.github/workflows/snap-release.yml +++ b/.github/workflows/snap-release.yml @@ -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 \ No newline at end of file + release: stable