Add resolveCollection task: resolves config.toml like server startup and prints results.

This commit is contained in:
Overlord committed 2026-10-03 20:33:58 +02:00
1 parent 8484d6c20c
commit e07e946a87
8 files changed
+122 -18

No files matched your search

+14 -2
View File
@@ -4,8 +4,9 @@
# attached twice: as lua_mod_automator-<version>.zip, and as lua_mod_automator.zip, the stable
# name behind <server>/<owner>/<repo>/releases/download/latest/lua_mod_automator.zip.
#
# A pre-release tag (containing "-", e.g. v0.2.0-rc.1) is built and tested but not released.
# The tag must match the version in build.gradle.kts.
# A pre-release tag (containing "-", e.g. v0.2.0-rc.1), or a tag on a commit that is not on
# master, is built and tested but not released. The tag must match the version in
# build.gradle.kts.
#
# Usage:
# ci/release.sh build downloads the game jar and builds the mod (tests and checkMod included)
@@ -27,6 +28,7 @@ REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
readonly REPO_ROOT
readonly MOD_ID="lua_mod_automator"
readonly RELEASE_BRANCH="master"
readonly WORK_DIR="${REPO_ROOT}/build/ci"
# DepotDownloader downloads single files of a depot; steamcmd only whole apps. Same release
@@ -47,6 +49,11 @@ fail() {
exit 1
}
# Whether HEAD is on the release branch, as fetched from origin.
on_release_branch() {
git -C "${REPO_ROOT}" merge-base --is-ancestor HEAD "origin/${RELEASE_BRANCH}" 2> /dev/null
}
# Prints the v* tag on HEAD, or nothing.
release_tag() {
git -C "${REPO_ROOT}" describe --tags --exact-match --match 'v*' 2> /dev/null || true
@@ -174,6 +181,11 @@ publish() {
return
fi
if ! on_release_branch; then
log "${tag} is not on ${RELEASE_BRANCH}; nothing is released."
return
fi
: "${GITEA_TOKEN:?GITEA_TOKEN is not set}"
: "${GITHUB_API_URL:?GITHUB_API_URL is not set}"
: "${GITHUB_REPOSITORY:?GITHUB_REPOSITORY is not set}"