1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-11 19:27:50 +01:00

CI filter: skip released nightly quietly

This commit is contained in:
vanous 2023-08-12 15:12:17 +02:00
parent 0e06bde741
commit 4e07852891

View File

@ -15,14 +15,15 @@ steps:
echo $RELEASED_VERSION_CODE
if [ "$RELEASED_VERSION_CODE" = "$CURRENT_VERSION_CODE" ]
then
echo "This version is already released, quit!"
return 1
echo "This version is already released, we quit!"
touch .do_not_build
fi
build-apks:
image: codeberg.org/freeyourgadget/android-fdroid-tools:latest
commands:
- if [ -f .do_not_build ]; then return 0; fi
# build the apks
- echo "$${SIGNING_KEY}" | base64 -d > app/keystore.p12
- ./gradlew assembleMainNightly -Dnightly_store_file="keystore.p12" -Dnightly_store_password="$${KEYSTOREPASS}" -Dnightly_key_alias="gadgetbridge" -Dnightly_key_password="$${KEYPASS}"
@ -33,6 +34,7 @@ steps:
pull-repo-config:
image: codeberg.org/freeyourgadget/android-fdroid-tools:latest
commands:
- if [ -f .do_not_build ]; then return 0; fi
- cd ..
- pwd
- mkdir repoconfig
@ -45,6 +47,7 @@ steps:
pull-pages:
image: codeberg.org/freeyourgadget/android-fdroid-tools:latest
commands:
- if [ -f .do_not_build ]; then return 0; fi
# prepare the pages repo, so fdroidclient can push files into it later
- cd ..
- pwd
@ -63,6 +66,7 @@ steps:
update-fdroid-data:
image: codeberg.org/freeyourgadget/android-fdroid-tools:latest
commands:
- if [ -f .do_not_build ]; then return 0; fi
- pwd
- ../repoconfig/fdroid-repo-config/repoconfig/prepare_changelog.sh
- cd ../repoconfig/fdroid-repo-config/repoconfig
@ -82,6 +86,7 @@ steps:
push-pages-update-repo:
image: codeberg.org/freeyourgadget/android-fdroid-tools:latest
commands:
- if [ -f .do_not_build ]; then return 0; fi
- cd ../pages/pages/
- git add -A
- git status