Compare commits

..

No commits in common. "master" and "2026.05.30.3" 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. # 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" \ 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 "$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 # Upload every dist/*.zip
# 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 for f in dist/*.zip; do
name=$(basename "$f") 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" echo "uploading $name"
if curl -sf -X POST -H "Authorization: token $GITEA_TOKEN" \ curl -sf -X POST -H "Authorization: token $GITEA_TOKEN" \
-F "attachment=@$f" \ -F "attachment=@$f" \
"$API/repos/$REPO/releases/$RID/assets?name=$name" \ "$API/repos/$REPO/releases/$RID/assets?name=$name" \
| jq -r '" -> " + .browser_download_url'; then | jq -r '" -> " + .browser_download_url'
uploaded=$((uploaded+1))
else
echo "::warning::upload failed for $name (duplicate asset on re-run?)"
fi
done 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. `ExilesPack-<tag>.zip` to a Gitea release.
The pack lands at 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 ## Build locally

View file

@ -1,52 +1,52 @@
pack: pack:
name: ExilesPack name: ExilesPack
default_branch: master 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 # 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. # either contains libraries only (coa-ace3) or isn't an end-user addon.
addons: addons:
- repo: Ace3 # canonical Ace3 bundle - libs, not deployed as addon - repo: coa-ace3 # canonical Ace3 bundle - libs, not deployed as addon
include: false include: false
note: "Ace3 libs are already embedded inside each consuming fork; the pack doesn't need them again." 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 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 - repo: coa-ai-voiceover
include: false 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)." 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 include: true
# If a repo has a *-all.zip release asset, prefer it over individual zips. Otherwise take all per-addon zips. # 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 include: true
- repo: Bagnon - repo: coa-bagnon
include: true include: true
- repo: Bartender4 - repo: coa-bartender
include: true include: true
- repo: Chatter - repo: coa-chatter
include: true include: true
- repo: Clique - repo: coa-clique
include: true include: true
- repo: DBM - repo: coa-dbm
include: true include: true
- repo: Decursive - repo: coa-decursive
include: true include: true
- repo: Details - repo: coa-details
include: true include: true
- repo: ElvUI - repo: coa-elvui
include: true include: true
note: "Repo-only - not part of the default Exiles install. Set include:false if you want a slimmer pack." 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 include: false
note: "Internal data-export tool (CoaExporter) — not shipped to guildies, not released." note: "Internal data-export tool (CoaExporter) — not shipped to guildies, not released."
- repo: Kui_Nameplates - repo: coa-kui-nameplates
include: true include: true
- repo: Leatrix_Plus - repo: coa-leatrix-plus
include: true include: true
- repo: MoveAnything - repo: coa-moveanything
include: true include: true
- repo: Omen - repo: coa-omen
include: true include: true
- repo: Pawn - repo: coa-pawn
include: true include: true
- repo: ProfessionMenu - repo: coa-professionmenu
include: true include: true
- repo: Quartz - repo: coa-quartz
include: true include: true
- repo: RatingBuster - repo: coa-ratingbuster
include: true include: true
- repo: SexyMap - repo: coa-sexymap
include: true include: true
- repo: ShadowedUnitFrames - repo: coa-shadowedunitframes
include: true include: true
- repo: TradeSkillMaster - repo: coa-tsm
include: true include: true
- repo: VanillaGuide - repo: coa-vanillaguide
include: true include: true
note: "Ace2 stack runs on 3.3.5 via Lua50Compat shim (table.getn/setn restored) since 1.04.2-coa1-coa.2." 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 include: true

View file

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