I am now just building and pushing to edge on every commit by using the Github integration of snapcraft.io but I also would like to automatically release to the candidate and to the release channel on Github releases from Github actions. I have written this job for it:
But in the CI I now get the error message: Error: 'edge' is not a valid set value for --from-channel when using --yes.
Now how am I supposed to promote my builds from the CI? I don’t want to build in github actions and want to leave this up to snapcraft.io. I only want to move the builds from one channel to another on a release in Github.
I would also like to know the official response here. Edge can’t be promoted to anything last I checked so how can we automate promotion of the latest build (edge) to something else? This is hands down the strangest part of working with snaps as a maintainer.
Any idea on how to get snaps promoted, in an automated fashion, from edge to XXX that were built by Canonical’s CI/CD system?
According to Snapcraft promote - #8 by sergiusens, that’s a job for snap release which works great IF that snap was built locally and the file is readily available.