mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 09:30:47 +03:00
24 lines
562 B
Bash
Executable file
24 lines
562 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "Missing repo to upload!"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -n "${CI_COMMIT_TAG}" ]; then
|
|
BUILD_URL=$(./flat-manager-client create https://flatpak.neko.dev stable)
|
|
elif [ "master" = "${CI_COMMIT_REF_NAME}" ]; then
|
|
BUILD_URL=$(./flat-manager-client create https://flatpak.neko.dev nightly)
|
|
fi
|
|
|
|
if [ -z "${BUILD_URL}" ]; then
|
|
echo "No upload to repo."
|
|
exit 0
|
|
fi
|
|
|
|
BUILD_URL=${BUILD_URL/http:/https:}
|
|
|
|
./flat-manager-client push $BUILD_URL $1
|
|
./flat-manager-client commit --wait $BUILD_URL
|
|
./flat-manager-client publish --wait $BUILD_URL
|
|
|