mirror of
https://github.com/sbrl/PolyFeed.git
synced 2024-06-30 10:14:56 +00:00
Compare commits
7 commits
6a0dcceca5
...
10ce462412
Author | SHA1 | Date | |
---|---|---|---|
Starbeamrainbowlabs | 10ce462412 | ||
Starbeamrainbowlabs | 18b25c6dc4 | ||
Starbeamrainbowlabs | a6ca7928c1 | ||
Starbeamrainbowlabs | 04c63f6c09 | ||
Starbeamrainbowlabs | 6ede9551d2 | ||
Starbeamrainbowlabs | 75196bd277 | ||
Starbeamrainbowlabs | 1040b53b3a |
17
build
17
build
|
@ -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
|
Loading…
Reference in a new issue