From dadb1706c444c1fa4ea69f2adb90ca7e028cb6e1 Mon Sep 17 00:00:00 2001 From: Florian Berthold Date: Fri, 29 May 2026 20:50:12 +0200 Subject: [PATCH 1/6] ci(release): hide auto-generated source archives (hide_archive_links) --- .gitea/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index e5fb6dd..3c05d4d 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -33,7 +33,7 @@ jobs: RID=$(curl -sf -X POST -H "Authorization: token $GITEA_TOKEN" \ -H "Content-Type: application/json" \ "$API/repos/$REPO/releases" \ - -d "$(jq -nc --arg t "$TAG" '{tag_name:$t,name:$t,draft:false,prerelease:false}')" \ + -d "$(jq -nc --arg t "$TAG" '{tag_name:$t,name:$t,draft:false,prerelease:false,hide_archive_links:true}')" \ | jq -r '.id') fi echo "release id: $RID" From 41ecfa65eb4e435945065325a05334df060e6ab1 Mon Sep 17 00:00:00 2001 From: Florian Berthold Date: Sat, 30 May 2026 06:25:17 +0200 Subject: [PATCH 2/6] manifest: exclude coa-vanillaguide (Ace2 crash) until ported --- manifest.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.yaml b/manifest.yaml index e0778ec..cfd745d 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -88,8 +88,8 @@ addons: include: true - repo: coa-vanillaguide - include: true - note: "Repo-only - not part of the default Exiles install." + include: false + note: "Excluded until ported off Ace2 — AceOO-2.0 table.setn/getn crash at load on 3.3.5. Re-include once it runs." - repo: coa-weakauras include: true From 5238a66e21d36786daa3f06142fbf622f4e95a9c Mon Sep 17 00:00:00 2001 From: Florian Berthold Date: Sat, 30 May 2026 06:43:04 +0200 Subject: [PATCH 3/6] ci(release): PATCH hide_archive_links after create (Gitea honors it only on edit) --- .gitea/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 3c05d4d..d101047 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -37,6 +37,10 @@ jobs: | jq -r '.id') fi echo "release id: $RID" + # Gitea honors hide_archive_links only on edit, not create — PATCH it + # 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 for f in dist/*.zip; do name=$(basename "$f") From ec25b5d0223efdad1491313c00fa6f8a637908f0 Mon Sep 17 00:00:00 2001 From: Florian Berthold Date: Sat, 30 May 2026 07:04:52 +0200 Subject: [PATCH 4/6] manifest: re-include coa-vanillaguide (loads on 3.3.5 via Lua50Compat shim) --- manifest.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.yaml b/manifest.yaml index cfd745d..6643eb2 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -88,8 +88,8 @@ addons: include: true - repo: coa-vanillaguide - include: false - note: "Excluded until ported off Ace2 — AceOO-2.0 table.setn/getn crash at load on 3.3.5. Re-include once it runs." + 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: coa-weakauras include: true From 9154d567509d88e1c18dddd655519942dcac0042 Mon Sep 17 00:00:00 2001 From: Florian Berthold Date: Wed, 10 Jun 2026 02:17:21 +0200 Subject: [PATCH 5/6] fix(pack): valid manifest YAML, stable-release picker, tolerant asset re-upload - manifest: single-quote the coa-template note - nested double quotes made the scalar invalid YAML (awk include-parser unaffected; it only reads repo:/include: lines) - build_pack: releases?limit=1 could hand back a prerelease/draft; fetch limit=10 and jq-select the first stable release - release.yml: re-running for an existing tag 409'd on duplicate asset names and set -euo pipefail killed the job; skip already-attached assets / warn on failed uploads and only fail when the release ends up with zero assets --- .gitea/workflows/release.yml | 29 ++++++++++++++++++++++++----- manifest.yaml | 2 +- tools/build_pack.sh | 9 +++++---- 3 files changed, 30 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index d101047..60d3c3d 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -41,12 +41,31 @@ 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 + # 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 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" - 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' + 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 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 ] diff --git a/manifest.yaml b/manifest.yaml index 6643eb2..840e3e1 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -12,7 +12,7 @@ addons: - 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 diff --git a/tools/build_pack.sh b/tools/build_pack.sh index f4477ac..026ef18 100755 --- a/tools/build_pack.sh +++ b/tools/build_pack.sh @@ -78,13 +78,14 @@ manifest_includes() { ' "$MANIFEST" } -# Latest release JSON for a repo, or empty string if none. +# Latest stable 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=1" 2>/dev/null || echo '[]')" - # `releases?limit=1` returns an array. Strip the wrapper. + 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. if [ "$(printf '%s' "$json" | jq -r 'type')" = "array" ]; then - printf '%s' "$json" | jq -c '.[0] // empty' + printf '%s' "$json" | jq -c '[.[] | select(.prerelease == false and .draft == false)][0] // empty' else printf '' fi From bed334f9dd60b3505946179e06ed324803c123be Mon Sep 17 00:00:00 2001 From: Florian Berthold Date: Wed, 10 Jun 2026 04:45:31 +0200 Subject: [PATCH 6/6] build: repoint pack to git.exil.es/coa-addons (PascalCase names) Migrated home: source git.sub-net.at/Exiles -> git.exil.es/coa-addons, manifest repo names coa-* -> PascalCase (AtlasLoot, WeakAuras, Bartender4, Kui_Nameplates, Leatrix_Plus, TradeSkillMaster, ...). build_pack.sh API+ORG updated. Per-addon release workflows are instance-relative and needed no changes. --- README.md | 2 +- manifest.yaml | 52 ++++++++++++++++++++++----------------------- tools/build_pack.sh | 4 ++-- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 682456f..50407bb 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ The `.gitea/workflows/release.yml` workflow picks up any tag starting with `ExilesPack-.zip` to a Gitea release. The pack lands at -[git.sub-net.at/Exiles/coa-pack/releases](https://git.sub-net.at/Exiles/coa-pack/releases). +[git.exil.es/coa/AddonPack/releases](https://git.exil.es/coa/AddonPack/releases). ## Build locally diff --git a/manifest.yaml b/manifest.yaml index 840e3e1..681e1d9 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -1,16 +1,16 @@ pack: name: ExilesPack default_branch: master - source: https://git.sub-net.at/Exiles + source: https://git.exil.es/coa-addons # 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: coa-ace3 # canonical Ace3 bundle - libs, not deployed as addon + - repo: 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: coa-template # template-only — not an installable addon + - repo: Template # template-only — not an installable addon include: false note: 'Gitea "Use This Template" source repo for new coa-* forks.' @@ -18,35 +18,35 @@ addons: 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: coa-altoholic + - repo: Altoholic include: true # If a repo has a *-all.zip release asset, prefer it over individual zips. Otherwise take all per-addon zips. - - repo: coa-atlasloot + - repo: AtlasLoot include: true - - repo: coa-bagnon + - repo: Bagnon include: true - - repo: coa-bartender + - repo: Bartender4 include: true - - repo: coa-chatter + - repo: Chatter include: true - - repo: coa-clique + - repo: Clique include: true - - repo: coa-dbm + - repo: DBM include: true - - repo: coa-decursive + - repo: Decursive include: true - - repo: coa-details + - repo: Details include: true - - repo: coa-elvui + - repo: 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: coa-kui-nameplates + - repo: Kui_Nameplates include: true - - repo: coa-leatrix-plus + - repo: Leatrix_Plus include: true - - repo: coa-moveanything + - repo: MoveAnything include: true - - repo: coa-omen + - repo: Omen include: true - - repo: coa-pawn + - repo: Pawn include: true - - repo: coa-professionmenu + - repo: ProfessionMenu include: true - - repo: coa-quartz + - repo: Quartz include: true - - repo: coa-ratingbuster + - repo: RatingBuster include: true - - repo: coa-sexymap + - repo: SexyMap include: true - - repo: coa-shadowedunitframes + - repo: ShadowedUnitFrames include: true - - repo: coa-tsm + - repo: TradeSkillMaster include: true - - repo: coa-vanillaguide + - repo: 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: coa-weakauras + - repo: WeakAuras include: true diff --git a/tools/build_pack.sh b/tools/build_pack.sh index 026ef18..071fcc7 100755 --- a/tools/build_pack.sh +++ b/tools/build_pack.sh @@ -23,8 +23,8 @@ TMP_DIR="$REPO_ROOT/tmp" STAGING_DIR="$REPO_ROOT/staging" DIST_DIR="$REPO_ROOT/dist" -API="https://git.sub-net.at/api/v1" -ORG="Exiles" +API="https://git.exil.es/api/v1" +ORG="coa-addons" TAG="" while [ $# -gt 0 ]; do