Skip to content
Snippets Groups Projects
Commit dbf8b194 authored by Stefan Hynek's avatar Stefan Hynek :drooling_face:
Browse files

feat(semantic-release): provide helper scripts for semantic-release

`prepare` builds the xar file depending on the branch; `publish` uploads to the exist repo
parent 9f41d840
No related branches found
No related tags found
1 merge request!7Move to gitlab flow
prepare 0 → 100755
#!/bin/bash
usage () {
cat << EOF
Usage: $(basename $0) branch_name version
This script is ment to be invoked in a CI environment only.
EOF
exit 2
}
# TODO: check for `CI_COMMIT_SHORT_SHA` and `EXIST_UPLOAD_PW`; if not set, show warning that not in CI
[[ $# -ne 2 ]] && { usage; }
export BRANCH=$1
export SR_PV=$2
echo "Building $BRANCH environment $SR_PV..."
./build
exit $?
publish 0 → 100755
#!/bin/bash
usage () {
cat << EOF
Usage: $(basename $0) file
This script is ment to be invoked in a CI environment only.
EOF
exit 2
}
# TODO: check for `CI_COMMIT_SHORT_SHA` and/or `EXIST_UPLOAD_PW`; if not set, show warning that not in CI
[[ $# -ne 1 ]] && { usage; }
export FILE=$1
echo "Uploading $FILE ..."
curl -u ci:${EXIST_UPLOAD_PW} -X POST -F file=@${FILE} https://ci.de.dariah.eu/exist-upload
exit $?
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment