You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
402 B
15 lines
402 B
2 years ago
|
#!/bin/sh
|
||
|
|
||
|
set -ex
|
||
|
|
||
|
cd "$(git rev-parse --show-toplevel)"
|
||
|
|
||
|
URL_BASE="$DRONE_GITEA_SERVER/api/packages/${DRONE_REPO_NAMESPACE}/generic/${DRONE_REPO_NAME}-build"
|
||
|
|
||
|
for ZIP_NAME in *.zip; do
|
||
|
UPLOAD_URL="${URL_BASE}/${DRONE_BUILD_NUMBER}/${ZIP_NAME}"
|
||
|
sha256sum "${ZIP_NAME}"
|
||
|
curl -sLifu "um-release-bot:$GITEA_API_KEY" -T "${ZIP_NAME}" "${UPLOAD_URL}"
|
||
|
echo "Uploaded to: ${UPLOAD_URL}"
|
||
|
done
|