Skip to content

Commit

Permalink
Publish mainline snaps to stable channel
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matifali committed Dec 3, 2024
1 parent 0e234b7 commit c79cdbc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish-snaps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ jobs:
git diff snap/snapcraft.yaml
- 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

0 comments on commit c79cdbc

Please sign in to comment.