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"