From ac9a030ec559a27a7d03562dc3986d6aa7070185 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 9 Mar 2021 21:47:04 -0500 Subject: [PATCH] Hack up quick upload script --- .gitignore | 1 + Makefile | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c4c4ffc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.zip diff --git a/Makefile b/Makefile index c5f3fe8..059955c 100644 --- a/Makefile +++ b/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"