1
0
Fork 0
mirror of https://github.com/sbrl/PolyFeed.git synced 2024-06-27 09:44:55 +00:00

Compare commits

...

7 commits

2 changed files with 15 additions and 4 deletions

17
build
View file

@ -117,16 +117,27 @@ SFTPCOMMANDS
task_upload-release() {
task_begin "Uploading release .deb file(s)";
_upload_deb "$(ls -ct *.deb | head -n1)";
# We grab from ARCHIVE here, as we expect that only archived .deb files are final & stable.
_upload_deb "$(find "${ARCHIVE}" -name "*.deb" | head -n1)";
task_end $?;
}
task_ci() {
task_begin "Checking environment";
check_env_variable "ARCHIVE";
check_env_variable "GIT_REF_NAME";
check_env_variable "GIT_REF_TYPE";
[[ "${GIT_REF_TYPE}" == "tags" ]] && check_env_variable "GIT_TAG_NAME";
task_end 0;
tasks_run setup build package archive;
if [[ "$(git tag --points-at HEAD | wc -l)" -gt 0 ]]; then
echo "Found tag $(git tag --points-at HEAD), uploading release";
if [[ "${GIT_REF_TYPE}" == "tags" ]]; then
echo "Found tag ${GIT_TAG_NAME}, uploading release";
tasks_run upload-release;
else
echo "No tags found, skipping uploading release";
fi
}

@ -1 +1 @@
Subproject commit 617fcdb5b9df7f57ccb6639a87be68238f99b9ed
Subproject commit 5b27397f5f1c21a447bb56be6bffbfbd9290c3e3