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