Improve build

This commit is contained in:
Xiaonan Shen
2020-05-31 21:16:31 -07:00
parent f50fb12487
commit b8296a70d6
8 changed files with 50 additions and 76 deletions

11
set-env.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -ex
VERSION=`cat VERSION`
if [[ $GITHUB_REF == "master" ]]; then
echo "::set-env name=TAGS::latest,${VERSION}"
else
echo "::set-env name=TAGS::dev,${VERSION}-dev"
fi