diff options
-rw-r--r-- | tools/do_release.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/do_release.sh b/tools/do_release.sh index 6494cac..78e76b7 100644 --- a/tools/do_release.sh +++ b/tools/do_release.sh @@ -17,7 +17,7 @@ TIMESTAMP=${TIMESTAMP:-$(date +%y-%m-%d)} make clean all git add svd mx_mcu_db prog_db chip_db -git commit --allow-empty -m "STM32Square Auto-Release $TIMESTAMP +git commit -q --allow-empty -m "STM32Square Auto-Release $TIMESTAMP This is an automatic release commit. Generation was invoked from: $RELEASE_TRIGGER @@ -67,6 +67,9 @@ git tag -a "v-productdb-$PRODUCTDB_BUILD" -m "Auto-release for STM32 Product Dat git tag -a "v-productdb-$PRODUCTDB_VERSION" -m "Auto-release for STM32 Product Database version $PRODUCTDB_VERSION" || true if [ ! -z ${GITLAB_ACCESS_TOKEN+x} ]; then + echo "Access token found, pushing commit and tags" git remote add -f ci-origin https://oauth2:${GITLAB_ACCESS_TOKEN}@gitlab.com/${CI_PROJECT_PATH} - git push --tags --force ci-origin + git push --tags --force ci-origin release +else + echo "No access token found. Not pushing anything." fi |