Files
purpur-ignis/.gitea/scripts/git-credential-ignis.sh
T
dmg e4bc296ce1
Release / release (push) Successful in 4m58s
CI / build (push) Successful in 1m13s
feat(ignis): rename Purpur distribution and scope release access
BREAKING CHANGE: New release artifacts use purpur-ignis-<version>.jar. Java 25/Purpur requirements, runtime SpigotIgnis, data folder, PDC/recipe namespaces and gameplay remain unchanged. Replace the old JAR rather than installing both distributions. The existing credential helper now permits only the renamed HTTPS repository path.
2026-09-12 14:41:49 -04:00

19 lines
658 B
Bash
Executable File

#!/bin/sh
# Git credential protocol; never invoke directly with a real token in recorded output.
# Only Git receives credential stdout. No secret is stored in this file or passed in argv.
set -eu
[ "${1:-}" = get ] || exit 0
protocol='' host='' path=''
while IFS='=' read -r key value && [ -n "$key" ]; do
case "$key" in
protocol) protocol=$value ;;
host) host=$value ;;
path) path=$value ;;
esac
done
[ "$protocol" = https ] || exit 0
[ "$host" = git.garvis.dev ] || exit 0
[ "$path" = dmg/purpur-ignis.git ] || exit 0
[ -n "${IGNIS_RELEASE_TOKEN:-}" ] || exit 0
printf 'username=dmg\npassword=%s\n\n' "$IGNIS_RELEASE_TOKEN"