CI: Extract upload step from justfile

This commit is contained in:
Juno Takano 2026-02-18 17:07:26 -03:00
commit 4bcd207281
2 changed files with 15 additions and 11 deletions

View file

@ -280,16 +280,10 @@ upload: full-build && shasum
api_root=https://git.jutty.dev/api/
url=$api_root/packages/jutty/generic/en/$version/en-x86_64-linux-gnu
file=target/release/en
if [ "${CI:-}" = true ]; then
curl -fsSL \
--user jutty:${{{{ secrets.GJD_REGISTRY_TOKEN }} \
--upload-file $file $url
else
curl -fsSL \
--user jutty:$(secret-tool lookup Title gjd-registry-token) \
--upload-file $file $url
fi
curl -fsSL \
--user jutty:$(secret-tool lookup Title gjd-registry-token) \
--upload-file $file $url
alias u := upload