mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
v10.50 built the amd64 snap, uploaded it, and died on
Publishing snap "wekan_10.50_amd64.snap"...
Unsquashing snap file 'wekan_10.50_amd64.snap'.
Credentials could not be parsed. Expected valid Ubuntu One credentials.
and the job then printed "SNAP_AUTH did not work: the Snap Store refused the
upload". The store refused nothing: snapcraft could not READ the secret. Sent
after the wrong problem again, and this time after a full snap build on every
architecture.
Three changes, no guessing about the credential format - that is snapcraft's
business, not this workflow's:
* the secrets check now rejects only what is unambiguously not a credential:
under 100 characters, or containing snapcraft's own "Exported login ..."
banner, which is what pasting the terminal OUTPUT instead of the file the
command WROTE looks like. That fails in one line at the top of the job
instead of after the build;
* the message after a failed upload no longer claims to know which failure it
was. It names both, and how to tell them apart from the snapcraft line
printed just above: "Credentials could not be parsed" is an unreadable
secret, 401/403 is a credential that lacks the ACL for that snap NAME;
* every re-export command now names all three snaps, because one release
publishes wekan, wekan-ondra and wekan-gantt-gpl:
snapcraft export-login --snaps wekan,wekan-ondra,wekan-gantt-gpl \
--acls package_access,package_push,package_release,package_update \
snap-auth.txt
gh secret set SNAP_AUTH --repo wekan/wekan < snap-auth.txt
The same distinction is in the Launchpad upload message, which had a third
possibility of its own ("is not a valid file" = the build produced nothing).
Thanks to xet7 !