Hack up quick upload script
This commit is contained in:
parent
9742103723
commit
ac9a030ec5
2 changed files with 19 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.zip
|
18
Makefile
18
Makefile
|
@ -5,3 +5,21 @@ install:
|
|||
update:
|
||||
cp -r $$WOW_ADDON_DIR/ATMe .
|
||||
cp -r $$WOW_ADDON_DIR/ATAutoReactivateGoliath .
|
||||
|
||||
clean:
|
||||
rm -f ATAutoReactivateGoliath.zip
|
||||
|
||||
archive: clean
|
||||
zip -r ATAutoReactivateGoliath ATAutoReactivateGoliath
|
||||
|
||||
upload: archive
|
||||
test $$WOW_GAME_VERSION
|
||||
curl -H "X-Api-Token: $$CURSEFORGE_TOKEN" \
|
||||
-F metadata='{changelog: "Initial upload", gameVersions: [$$WOW_GAME_VERSION], releaseType: "release"}' \
|
||||
-F file=@ATAutoReactivateGoliath.zip \
|
||||
https://wow.curseforge.com/api/projects/$$CURSEFORGE_PROJECT_ID/upload-file
|
||||
|
||||
version:
|
||||
curl -H "X-Api-Token: $$CURSEFORGE_TOKEN" \
|
||||
https://wow.curseforge.com/api/game/versions | \
|
||||
jq ".[-1] | .id"
|
||||
|
|
Loading…
Reference in a new issue