Skip to content

ci: replace action-publish with snapcraft CLI - #2199

Merged
TerryHowe merged 2 commits into
oras-project:mainfrom
TanvirTian:fix/remove-action-publish
Sep 29, 2026
Merged

TerryHowe merged 2 commits into
oras-project:mainfrom
TanvirTian:fix/remove-action-publish

Conversation

@TanvirTian

Copy link
Copy Markdown
Contributor

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:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

@codecov

codecov Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.80%. Comparing base (87495d5) to head (e33355c).
⚠️ Report is 16 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .github/workflows/release-snap.yml Resolved
@TanvirTian

Copy link
Copy Markdown
Contributor Author

Done. Thanks for the suggestions 😺

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@TerryHowe
TerryHowe merged commit 7327064 into oras-project:main Sep 29, 2026
10 checks passed
@TerryHowe

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace canonical/action-publish with direct snapcraft CLI calls in release-snap.yml

2 participants