Skip to content

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

Closed

Description

@TerryHowe

Summary

`.github/workflows/release-snap.yml` uses `canonical/action-publish` (and `canonical/action-build`) to build and publish the snap package. `canonical/action-publish` has had no release in 3 years and no maintainer activity/comments in about a year (see https://github.com/canonical/action-publish). A node20→node24 runtime update is sitting unmerged as canonical/action-publish#52.

Proposal

Drop the dependency on the unmaintained `canonical/action-publish` action and call the `snapcraft` CLI directly in the workflow instead:

  • Install `snapcraft` in the job.
  • Run `snapcraft upload` / `snapcraft release` directly, authenticating with `SNAPCRAFT_STORE_CREDENTIALS` (from `snapcraft export-login`), which is the same mechanism the action uses under the hood.
  • `canonical/action-build` can likely stay as-is, or be evaluated separately, since this issue is scoped to the publish step.

This removes reliance on a third-party action that isn't being maintained, without losing any functionality, since the action is a thin wrapper around these same CLI commands.

References

Activity

  1. TanvirTian commented on Sep 28, 2026

    @TanvirTian
    Contributor

    can I give this one a shot?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions