Compare commits

..

No commits in common. "master" and "2026.05.31.1" have entirely different histories.

4 changed files with 39 additions and 59 deletions

View file

@ -41,31 +41,12 @@ jobs:
# so the auto-generated Source Code (zip/tar.gz) links stay hidden.
curl -sf -X PATCH -H "Authorization: token $GITEA_TOKEN" -H "Content-Type: application/json" \
"$API/repos/$REPO/releases/$RID" -d '{"hide_archive_links":true}' >/dev/null || true
# Upload every dist/*.zip. Re-running for an existing tag 409s on
# duplicate asset names - warn and keep going instead of letting
# set -e kill the job; only fail if the release ends up with zero
# assets.
existing=$(curl -s -H "Authorization: token $GITEA_TOKEN" \
"$API/repos/$REPO/releases/$RID/assets" | jq -r '.[].name' || true)
uploaded=0
present=0
# Upload every dist/*.zip
for f in dist/*.zip; do
name=$(basename "$f")
if printf '%s\n' "$existing" | grep -qxF "$name"; then
echo "::warning::$name already attached (re-run for existing tag) - skipping"
present=$((present+1))
continue
fi
echo "uploading $name"
if curl -sf -X POST -H "Authorization: token $GITEA_TOKEN" \
-F "attachment=@$f" \
"$API/repos/$REPO/releases/$RID/assets?name=$name" \
| jq -r '" -> " + .browser_download_url'; then
uploaded=$((uploaded+1))
else
echo "::warning::upload failed for $name (duplicate asset on re-run?)"
fi
curl -sf -X POST -H "Authorization: token $GITEA_TOKEN" \
-F "attachment=@$f" \
"$API/repos/$REPO/releases/$RID/assets?name=$name" \
| jq -r '" -> " + .browser_download_url'
done
echo "release published: $uploaded uploaded, $present already present"
# Only fail the job if NO assets ended up on the release.
[ "$((uploaded + present))" -gt 0 ]

View file

@ -19,7 +19,7 @@ The `.gitea/workflows/release.yml` workflow picks up any tag starting with
`ExilesPack-<tag>.zip` to a Gitea release.
The pack lands at
[git.exil.es/coa/AddonPack/releases](https://git.exil.es/coa/AddonPack/releases).
[git.sub-net.at/Exiles/coa-pack/releases](https://git.sub-net.at/Exiles/coa-pack/releases).
## Build locally

View file

@ -1,52 +1,52 @@
pack:
name: ExilesPack
default_branch: master
source: https://git.exil.es/coa-addons
source: https://git.sub-net.at/Exiles
# Repos to include in the pack. `include: false` means the repo is in the org but
# either contains libraries only (coa-ace3) or isn't an end-user addon.
addons:
- repo: Ace3 # canonical Ace3 bundle - libs, not deployed as addon
- repo: coa-ace3 # canonical Ace3 bundle - libs, not deployed as addon
include: false
note: "Ace3 libs are already embedded inside each consuming fork; the pack doesn't need them again."
- repo: Template # template-only — not an installable addon
- repo: coa-template # template-only — not an installable addon
include: false
note: 'Gitea "Use This Template" source repo for new coa-* forks.'
note: "Gitea "Use This Template" source repo for new coa-* forks."
- repo: coa-ai-voiceover
include: false
note: "1.2 GiB of MP3 voice data + small lua framework; far too big to bundle. Track the addon separately (see /coa/dev/addons)."
- repo: Altoholic
- repo: coa-altoholic
include: true
# If a repo has a *-all.zip release asset, prefer it over individual zips. Otherwise take all per-addon zips.
- repo: AtlasLoot
- repo: coa-atlasloot
include: true
- repo: Bagnon
- repo: coa-bagnon
include: true
- repo: Bartender4
- repo: coa-bartender
include: true
- repo: Chatter
- repo: coa-chatter
include: true
- repo: Clique
- repo: coa-clique
include: true
- repo: DBM
- repo: coa-dbm
include: true
- repo: Decursive
- repo: coa-decursive
include: true
- repo: Details
- repo: coa-details
include: true
- repo: ElvUI
- repo: coa-elvui
include: true
note: "Repo-only - not part of the default Exiles install. Set include:false if you want a slimmer pack."
@ -54,42 +54,42 @@ addons:
include: false
note: "Internal data-export tool (CoaExporter) — not shipped to guildies, not released."
- repo: Kui_Nameplates
- repo: coa-kui-nameplates
include: true
- repo: Leatrix_Plus
- repo: coa-leatrix-plus
include: true
- repo: MoveAnything
- repo: coa-moveanything
include: true
- repo: Omen
- repo: coa-omen
include: true
- repo: Pawn
- repo: coa-pawn
include: true
- repo: ProfessionMenu
- repo: coa-professionmenu
include: true
- repo: Quartz
- repo: coa-quartz
include: true
- repo: RatingBuster
- repo: coa-ratingbuster
include: true
- repo: SexyMap
- repo: coa-sexymap
include: true
- repo: ShadowedUnitFrames
- repo: coa-shadowedunitframes
include: true
- repo: TradeSkillMaster
- repo: coa-tsm
include: true
- repo: VanillaGuide
- repo: coa-vanillaguide
include: true
note: "Ace2 stack runs on 3.3.5 via Lua50Compat shim (table.getn/setn restored) since 1.04.2-coa1-coa.2."
- repo: WeakAuras
- repo: coa-weakauras
include: true

View file

@ -23,8 +23,8 @@ TMP_DIR="$REPO_ROOT/tmp"
STAGING_DIR="$REPO_ROOT/staging"
DIST_DIR="$REPO_ROOT/dist"
API="https://git.exil.es/api/v1"
ORG="coa-addons"
API="https://git.sub-net.at/api/v1"
ORG="Exiles"
TAG=""
while [ $# -gt 0 ]; do
@ -78,14 +78,13 @@ manifest_includes() {
' "$MANIFEST"
}
# Latest stable release JSON for a repo, or empty string if none.
# Latest release JSON for a repo, or empty string if none.
latest_release_json() {
local repo="$1" json
json="$(curl -fsS "$API/repos/$ORG/$repo/releases?limit=10" 2>/dev/null || echo '[]')"
# `releases?limit=N` returns a newest-first array that can contain
# prereleases/drafts - pick the first stable release.
json="$(curl -fsS "$API/repos/$ORG/$repo/releases?limit=1" 2>/dev/null || echo '[]')"
# `releases?limit=1` returns an array. Strip the wrapper.
if [ "$(printf '%s' "$json" | jq -r 'type')" = "array" ]; then
printf '%s' "$json" | jq -c '[.[] | select(.prerelease == false and .draft == false)][0] // empty'
printf '%s' "$json" | jq -c '.[0] // empty'
else
printf ''
fi