Add version file

This commit is contained in:
Neil Alexander 2018-03-04 11:09:17 +00:00
parent 54a742d576
commit e43776f90e
3 changed files with 3 additions and 2 deletions

View file

@ -15,7 +15,7 @@ jobs:
name: Create artifact upload directory and set variables
command: |
mkdir /tmp/upload
echo 'export CIBUILD=0.1.$(git rev-list HEAD --count | xargs printf "%04d")' >> $BASH_ENV
echo 'export CIBUILD=$(cat VERSION).$(git rev-list HEAD --count | xargs printf "%04d")' >> $BASH_ENV
echo 'export CIBRANCH=$(git name-rev --name-only HEAD)' >> $BASH_ENV
echo '[ "$CIBRANCH" != "master" ] && export CIVERSION=$CIBRANCH-$CIBUILD || export CIVERSION=$CIBUILD' >> $BASH_ENV