Skip to content

Commit c79cdbc

Browse files
committed
Publish mainline snaps to stable channel
Updating the workflow to ensure that snaps from the mainline channel are published to the stable release. This aligns with the release strategy for more consistent deployment practices.
1 parent 0e234b7 commit c79cdbc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish-snaps.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ jobs:
5858
git diff snap/snapcraft.yaml
5959
6060
- uses: snapcore/action-build@v1
61-
id: build
61+
if: ${{ steps.metadata.outputs.release_channel == 'mainline' }}
6262

6363
- uses: snapcore/action-publish@v1
64+
if: ${{ steps.metadata.outputs.release_channel == 'mainline' }}
6465
env:
6566
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
6667
with:
6768
snap: ${{ steps.build.outputs.snap }}
68-
release: ${{ steps.metadata.outputs.release_channel }}
69+
release: stable

0 commit comments

Comments
 (0)