From dc8a89c7ecd4b1655246c4b38dd2c718c4cab369 Mon Sep 17 00:00:00 2001 From: Paul Emmerich Date: Sat, 11 May 2024 18:14:00 +0200 Subject: [PATCH] Split .pkgmeta by release type This seems to be the only way to fully exclude a whole addon from release builds. https://github.com/BigWigsMods/packager/issues/165 --- .github/workflows/ci.yml | 3 ++- .pkgmeta | 4 +++- .pkgmeta-alpha | 10 ++++++++++ DBM-Test-BCVanilla/DBM-Test-BCVanilla.toc | 2 -- 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 .pkgmeta-alpha diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42078248..fac8d442 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,8 @@ jobs: uses: BigWigsMods/packager@master if: ${{ github.event_name != 'pull_request' }} with: - args: -n "DBM-Vanilla_SoD_BC-{project-version}{classic}" + # Ugly hack to use a different .pkgmeta for alpha builds to work around https://github.com/BigWigsMods/packager/issues/165 + args: -n "DBM-Vanilla_SoD_BC-{project-version}{classic}" $(if [[ -z $(git tag --points-at HEAD) ]]; then echo "-m .pkgmeta-alpha" ; else echo "-m .pkgmeta" ; fi) env: CF_API_KEY: ${{ secrets.CF_API_KEY }} GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} diff --git a/.pkgmeta b/.pkgmeta index a7e2aba1..da0a3841 100644 --- a/.pkgmeta +++ b/.pkgmeta @@ -7,4 +7,6 @@ move-folders: DBM-Raids-BC/DBM-Outlands: DBM-Outlands DBM-Raids-BC/DBM-Azeroth: DBM-Azeroth DBM-Raids-BC/DBM-Raids-BC: DBM-Raids-BC - DBM-Raids-BC/DBM-Test-BCVanilla: DBM-Test-BCVanilla + +ignore: + - DBM-Raids-BC/DBM-Test-BCVanilla: DBM-Test-BCVanilla diff --git a/.pkgmeta-alpha b/.pkgmeta-alpha new file mode 100644 index 00000000..a7e2aba1 --- /dev/null +++ b/.pkgmeta-alpha @@ -0,0 +1,10 @@ +package-as: DBM-Raids-BC +changelog-title: DBM - Season of Discovery, Vanilla, and TBC +enable-nolib-creation: no + +move-folders: + DBM-Raids-BC/DBM-Raids-Vanilla: DBM-Raids-Vanilla + DBM-Raids-BC/DBM-Outlands: DBM-Outlands + DBM-Raids-BC/DBM-Azeroth: DBM-Azeroth + DBM-Raids-BC/DBM-Raids-BC: DBM-Raids-BC + DBM-Raids-BC/DBM-Test-BCVanilla: DBM-Test-BCVanilla diff --git a/DBM-Test-BCVanilla/DBM-Test-BCVanilla.toc b/DBM-Test-BCVanilla/DBM-Test-BCVanilla.toc index 054c25eb..77ff086d 100644 --- a/DBM-Test-BCVanilla/DBM-Test-BCVanilla.toc +++ b/DBM-Test-BCVanilla/DBM-Test-BCVanilla.toc @@ -1,4 +1,3 @@ -#@alpha@ ## Interface: 100206 ## Interface-Classic: 11502 ## Interface-Wrath: 30403 @@ -11,4 +10,3 @@ Season of Discovery/Sunken Temple/Atal'arion.lua Season of Discovery/Sunken Temple/Reports/Atal'arion.lua -#@end-alpha@