ci: allow pull requests

disable tests if env secrets are empty

- detect emtpy aws token
- upload: check for aptly creds
This commit is contained in:
André Roth
2024-09-21 16:36:54 +02:00
parent 67d04ca878
commit 20c81d7f9a
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -44,6 +44,12 @@ if [ "action" = "ci" ] && [ -z "$dist" ]; then
exit 1
fi
if [ -z "$aptly_user" ] || [ -z "$aptly_password" ]; then
usage
echo Error: please set APTLY_USER and APTLY_PASSWORD
exit 1
fi
echo "Publishing version '$version' to $action for $dist...\n"
upload()