Skip to content

Commit

Permalink
fix: put binary to tmp folder to avoid duplicate name
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyoucao577 committed Jun 6, 2020
1 parent 03b2ba5 commit 744cde0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ if [ ! -z "${INPUT_LDFLAGS}" ]; then
fi

# build
GOOS=${INPUT_GOOS} GOARCH=${INPUT_GOARCH} go build -o ${BINARY_NAME}${EXT} ${INPUT_BUILD_FLAGS} ${LDFLAGS_PREFIX} "${INPUT_LDFLAGS}"
BUILD_ARTIFACTS_FOLDER=build-artifacts-$(date +%s)
mkdir -p ${BUILD_ARTIFACTS_FOLDER}
GOOS=${INPUT_GOOS} GOARCH=${INPUT_GOARCH} go build -o ${BUILD_ARTIFACTS_FOLDER}/${BINARY_NAME}${EXT} ${INPUT_BUILD_FLAGS} ${LDFLAGS_PREFIX} "${INPUT_LDFLAGS}"
cd ${BUILD_ARTIFACTS_FOLDER}
ls -lh


Expand Down

0 comments on commit 744cde0

Please sign in to comment.