Files
threeSD/.ci/common/pre-upload.sh
T
Pengfei 412aeaa0d4 Use Github Actions instead of Travis
Moved MSVC to Github Actions as well.
2021-06-27 00:11:09 +08:00

12 lines
257 B
Bash
Executable File

#!/bin/bash -ex
GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`"
GITREV="`git show -s --format='%h'`"
if [[ $GITHUB_REF == refs/tags/* ]]; then
GITNAME="${GITHUB_REF:10}"
else
GITNAME="${GITDATE}-${GITREV}"
fi
mkdir -p artifacts