Repository navigation
ci: replace action-publish with snapcraft CLI - #2199
Conversation
Signed-off-by: TanvirTian <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2199 +/- ##
==========================================
- Coverage 87.81% 87.80% -0.02%
==========================================
Files 139 139
Lines 5689 5756 +67
==========================================
+ Hits 4996 5054 +58
- Misses 413 419 +6
- Partials 280 283 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
TerryHowe
left a comment
There was a problem hiding this comment.
Checked the whole repo for this: canonical/action-build and canonical/action-publish in this file are the only canonical/* actions anywhere in it, and action-build is actually the staler of the two. Left a suggestion that removes both in one pass, since the publish step here still depends on action-build's snap output.
Not a blocking review — the change as written is a faithful reimplementation of what action-publish does, and I confirmed against its source that dropping login/logout is correct when SNAPCRAFT_STORE_CREDENTIALS is set.
Signed-off-by: TanvirTian <[email protected]>
|
Done. Thanks for the suggestions 😺 |
|
Thanks! |
What this PR does / why we need it:
This PR replaces the unmaintained canonical/action-publish GitHub Action in the Snap release workflow with the Snapcraft CLI directly.
The workflow now installs Snapcraft when needed and uses snapcraft upload with the existing SNAPCRAFT_STORE_CREDENTIALS secret and release channel. This removes the dependency on the unmaintained publish action without changing the publishing mechanism.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #2198
Please check the following list: