Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uploading snap to multiple channels #7770

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

FirelightFlagboy
Copy link
Contributor

Currently only the latest args --release is used by snapcraft for upload.

@FirelightFlagboy FirelightFlagboy requested a review from a team as a code owner July 24, 2024 10:14
.github/workflows/publish.yml Outdated Show resolved Hide resolved
.github/workflows/publish.yml Outdated Show resolved Hide resolved
@FirelightFlagboy FirelightFlagboy force-pushed the fix-snap-upload-multi-channel branch from 7a54264 to 6623919 Compare July 26, 2024 08:51
Currently only the latest args `--release` is used by snapcraft for upload.

Rework the script to output the channel values instead of the `--release=$channel` args.
Then iterate over the channels to upload the snap to each of them.

Co-authored-by: Marcos Medrano <[email protected]>
@FirelightFlagboy FirelightFlagboy force-pushed the fix-snap-upload-multi-channel branch from 8cf7ab0 to e253d6c Compare July 26, 2024 08:52
@FirelightFlagboy FirelightFlagboy added this pull request to the merge queue Jul 26, 2024
run: |
set -x
for channel in $(cat ${{ runner.temp }}/snap-release-channels); do
snapcraft upload --releases=$channel snap/Parsec_${{ steps.version.outputs.full }}_linux_*.snap
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
snapcraft upload --releases=$channel snap/Parsec_${{ steps.version.outputs.full }}_linux_*.snap
snapcraft upload --release=$channel snap/Parsec_${{ steps.version.outputs.full }}_linux_*.snap

@@ -1,6 +1,6 @@
# Parsec Cloud (https://parsec.cloud) Copyright (c) BUSL-1.1 2016-present Scille SAS
"""
For a given Parsec version, this script outputs the `--release=<channel>` options intended for snapcraft.
For a given Parsec version, this script outputs the `<channel>` value intended to be used in the `--releases=<channel>` option for `snapcraft upload`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Approved too quickly ^^

Suggested change
For a given Parsec version, this script outputs the `<channel>` value intended to be used in the `--releases=<channel>` option for `snapcraft upload`.
For a given Parsec version, this script outputs the `<channel>` value intended to be used in the `--release=<channel>` option for `snapcraft upload`.

Merged via the queue into master with commit 5cddb72 Jul 26, 2024
12 of 13 checks passed
@FirelightFlagboy FirelightFlagboy deleted the fix-snap-upload-multi-channel branch July 26, 2024 10:04
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.

2 participants