aboutsummaryrefslogtreecommitdiff
path: root/upload_to_modrinth.sh
diff options
context:
space:
mode:
Diffstat (limited to 'upload_to_modrinth.sh')
-rw-r--r--upload_to_modrinth.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/upload_to_modrinth.sh b/upload_to_modrinth.sh
new file mode 100644
index 0000000..d3cc1e9
--- /dev/null
+++ b/upload_to_modrinth.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+set -a
+source .env
+set +a
+
+if [ -z MODRINTH_TOKEN ]; then
+ echo "No MODRINTH_TOKEN set in .env"
+ exit 1
+fi
+
+./gradlew modrinth