Skip to content

Commit

Permalink
chore(release): respect Windows binary file naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanilves committed Apr 9, 2022
1 parent 80d58c5 commit df12307
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/github-upload-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ ID=$(curl -s -H "Authorization: Token ${GITHUB_TOKEN}" "${API_URL}/tags/${TAG}"

pushd "${ASSETS_PATH}"
for DIR in $(find -mindepth 1 -maxdepth 1 -type d); do
tar -C "${DIR}" -zc lstags -f "${DIR}-$(cat ../release/NAME).tar.gz"
EXE_FILE=lstags

if [[ ${DIR} =~ windows ]]; then EXE_FILE=lstags.exe; fi

tar -C "${DIR}" -zc ${EXE_FILE} -f "${DIR}-$(cat ../release/NAME).tar.gz"
done

for FILE in $(find -mindepth 1 -maxdepth 1 -type f); do
Expand Down

0 comments on commit df12307

Please sign in to comment.