Skip to content

Commit

Permalink
Split .pkgmeta by release type
Browse files Browse the repository at this point in the history
This seems to be the only way to fully exclude a whole addon from
release builds.

BigWigsMods/packager#165
  • Loading branch information
emmericp committed May 11, 2024
1 parent 0957b8a commit dc8a89c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 3 additions & 1 deletion .pkgmeta
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 10 additions & 0 deletions .pkgmeta-alpha
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions DBM-Test-BCVanilla/DBM-Test-BCVanilla.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#@alpha@
## Interface: 100206
## Interface-Classic: 11502
## Interface-Wrath: 30403
Expand All @@ -11,4 +10,3 @@

Season of Discovery/Sunken Temple/Atal'arion.lua
Season of Discovery/Sunken Temple/Reports/Atal'arion.lua
#@end-alpha@

0 comments on commit dc8a89c

Please sign in to comment.