Hack up quick upload script

This commit is contained in:
Andrew Tomaka 2021-03-09 21:47:04 -05:00
parent 9742103723
commit ac9a030ec5
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
2 changed files with 19 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.zip

View file

@ -5,3 +5,21 @@ install:
update: update:
cp -r $$WOW_ADDON_DIR/ATMe . cp -r $$WOW_ADDON_DIR/ATMe .
cp -r $$WOW_ADDON_DIR/ATAutoReactivateGoliath . 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"