mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-23 06:07:06 +00:00
Follow-up to 306a83a4, actually fixing the release script (oops!)
but also propagating the change to other release artifacts,
since unlike the regression testing workflows, we make the archives ourselves.
26 lines
712 B
Bash
Executable File
26 lines
712 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
tag=$1
|
|
[ $# -eq 1 ]
|
|
|
|
flags=(--draft --fail-on-no-commits --verify-tag)
|
|
if [[ "$tag" = v*-rc* ]]; then
|
|
flags+=(--prerelease)
|
|
fi
|
|
|
|
files=(
|
|
rgbds-win64.zip
|
|
rgbds-win32.zip
|
|
rgbds-macos.zip
|
|
rgbds-linux-x86_64.tar.xz
|
|
rgbds-source.tar.gz
|
|
)
|
|
|
|
set -x
|
|
gh release create "${flags[@]}" --notes-file - "$tag" "${files[@]}" <<"EOF"
|
|
Please ensure that the packages below work properly.
|
|
Once that's done, replace this text with the changelog, un-draft the release, and update the `release` branch.
|
|
By the way, if you forgot to update `include/version.hpp`, RGBASM's version test is going to fail in the tag's regression testing! (Use `git push --delete origin <tag>` to delete it)
|
|
EOF
|