diff --git a/.github/workflows/publish-snaps.yaml b/.github/workflows/publish-snaps.yaml index 1da2431..b1cd9c2 100644 --- a/.github/workflows/publish-snaps.yaml +++ b/.github/workflows/publish-snaps.yaml @@ -59,10 +59,12 @@ jobs: - uses: snapcore/action-build@v1 id: build + if: ${{ steps.metadata.outputs.release_channel == 'mainline' }} - uses: snapcore/action-publish@v1 + if: ${{ steps.metadata.outputs.release_channel == 'mainline' }} env: SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} with: snap: ${{ steps.build.outputs.snap }} - release: ${{ steps.metadata.outputs.release_channel }} + release: stable