Skip to content

Commit

Permalink
meh
Browse files Browse the repository at this point in the history
  • Loading branch information
dsvensson committed Nov 24, 2024
1 parent de78d2f commit 9ae16e2
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build-targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,22 @@ jobs:
(cd ${GITHUB_WORKSPACE}/ezquake && dist/gen-release.sh)
(
cd artifacts
for target in artifacts/*; do
if [[ -f "${target}"/*.zip ]]; then
mv "${target}"/*.zip "${dist_dir}/${target}.zip"
else
(cd "${target}"; zip -o -9 "${dist_dir}/${target}.zip" *)
fi
done;
)
find ${dist_dir}
mv ezquake/*.tar.gz "${dist_dir}/"
find "artifacts" -type f -exec mv {} "${dist_dir}/" \;
find "${dist_dir}" -type f -execdir sha256sum {} \; > "checksums.txt"
Expand All @@ -213,7 +228,7 @@ jobs:
(
cd "${dist_dir}"
for target in *; do
if [[ ! "${target}" ~= /.+\.(zip|gz)/ ]]; then
if ! [[ "${target}" ~= /.+\.(zip|gz)/ ]]; then
zip -o -9 "${target}.zip" "${target}"
rm "${target}"
fi
Expand Down

0 comments on commit 9ae16e2

Please sign in to comment.