mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-02 16:49:04 +00:00
14 lines
320 B
Bash
Executable File
14 lines
320 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
git config --global --add safe.directory /__w/threeSD/threeSD
|
|
|
|
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
|