Compare commits
No commits in common. "main" and "v1.2.4.b3-panorama5" have entirely different histories.
main
...
v1.2.4.b3-
1 changed files with 3 additions and 8 deletions
11
release.sh
11
release.sh
|
|
@ -29,13 +29,8 @@ set -euo pipefail
|
||||||
FORGEJO_URL="https://git.zio.sh"
|
FORGEJO_URL="https://git.zio.sh"
|
||||||
OWNER="cs2"
|
OWNER="cs2"
|
||||||
REPO="jRandomSkills"
|
REPO="jRandomSkills"
|
||||||
# Needs write:repository. Only uploading needs it; downloading from the public repo doesn't. From the
|
# Placeholder - replace, or set FORGEJO_TOKEN in the environment instead. Needs write:repository.
|
||||||
# environment, or else from .forgejo-token in the cs2/ folder above every plugin (outside their
|
# Only uploading needs it; downloading from the public repo doesn't. Don't commit a real token.
|
||||||
# repos, mode 600). Don't commit a real token.
|
|
||||||
TOKEN_FILE="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/../../.forgejo-token"
|
|
||||||
if [[ -z "${FORGEJO_TOKEN:-}" && -r "$TOKEN_FILE" ]]; then
|
|
||||||
FORGEJO_TOKEN="$(tr -d '[:space:]' < "$TOKEN_FILE")"
|
|
||||||
fi
|
|
||||||
FORGEJO_TOKEN="${FORGEJO_TOKEN:-CHANGE_ME_FORGEJO_TOKEN}"
|
FORGEJO_TOKEN="${FORGEJO_TOKEN:-CHANGE_ME_FORGEJO_TOKEN}"
|
||||||
|
|
||||||
# CS2 client used to compile the Panorama layouts, and the Workshop Tools addon compiled into.
|
# CS2 client used to compile the Panorama layouts, and the Workshop Tools addon compiled into.
|
||||||
|
|
@ -65,7 +60,7 @@ if [[ -z "$TAG" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [[ "$FORGEJO_TOKEN" == "CHANGE_ME_FORGEJO_TOKEN" ]]; then
|
if [[ "$FORGEJO_TOKEN" == "CHANGE_ME_FORGEJO_TOKEN" ]]; then
|
||||||
echo "Set FORGEJO_TOKEN (export it, or put it in $TOKEN_FILE) first." >&2
|
echo "Set FORGEJO_TOKEN (edit release.sh or export it) first." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue