Merge branch 'FirstReleaseOutThereBranch'

This commit is contained in:
Wolfgang Hottgenroth 2021-03-30 11:09:15 +02:00
commit c2dc9463ca
3 changed files with 30 additions and 1 deletions

2
.gitignore vendored
View File

@ -6,5 +6,5 @@ cube/pubsubc.a
test
.bash_history
.vscode
tools/ENV

2
tools/ENV.tmpl Normal file
View File

@ -0,0 +1,2 @@
export PRIVATETOKEN=privateToken

27
tools/release.sh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/bash
RELEASENAME=$1
RELEASETAG=$2
DESCRIPTION=$3
if [ "$RELEASENAME" = "" -o "$RELEASETAG" = "" -o "$DESCRIPTION" = "" ]; then
echo "release.sh RELEASENAME RELEASETAG DESCRIPTION"
exit 1
fi
RELEASETAGTARGET=`git rev-parse --short=8 HEAD`
gitlabreleaseuploader.py \
--privateToken $PRIVATETOKEN \
--projectId 128 \
--projectUrl https://home.hottis.de/gitlab/wolutator/mains-frequency-counter-stm32 \
--releaseName "$RELEASENAME" \
--createRelease \
--releaseTag $RELEASETAG \
--releaseTagTarget $RELEASETAGTARGET \
--createReleaseTag \
--description "$DESCRIPTION" \
--instanceUrl https://home.hottis.de/gitlab \
--verbose \
--file cube/build/cube.elf