Hey there, I have another question for my app FluffyChat which I have migrated to Github recently: https://github.com/krille-chan/fluffychat
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:
promote_snapcraft:
runs-on: ubuntu-latest
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v2
- run: snapcraft
- name: Promote Snap
run: |
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
if [ "$RELEASE_TYPE" = "rc" ]; then
snapcraft promote fluffychat --from-channel edge --to-channel candidate --yes
else
snapcraft promote fluffychat --from-channel edge --to-channel stable --yes
fi
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.