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 823e848 commit f17a774
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build-targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,34 +195,32 @@ jobs:
- name: Collect GitHub release artifacts
run: |
set -x
find artifacts
echo ${GITHUB_WORKSPACE}
dist_dir=${GITHUB_WORKSPACE}/dist
mkdir ${dist_dir}
(cd ${GITHUB_WORKSPACE}/ezquake && dist/gen-release.sh)
mv ezquake/*.tar.gz ${dist_dir}/
find artifacts -type f -exec mv {} ${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
find "${dist_dir}" -type f -execdir sha256sum {} \; > "checksums.txt"
cat "checksums.txt"
# Reset timestamp to time of tag
find "${dist_dir}" -print0 | xargs -0r touch --date="${RELEASE_DATE}"
# Compress uncompressed files
(
cd ${dist_dir}
cd "${dist_dir}"
for target in *; do
if [[ -z "${target##*.zip}" && -z "${target##*.tar.gz}" ]]; then
if [[ ! "${target}" ~= /.+\.(zip|gz)/ ]]; then
zip -o -9 "${target}.zip" "${target}"
rm "${target}"
fi
done
)
find ${dist_dir}
find "${dist_dir}"
mv "checksums.txt" "${dist_dir}/"
touch --date="${RELEASE_DATE}" "${dist_dir}/checksums.txt"
Expand Down

0 comments on commit f17a774

Please sign in to comment.