aboutsummaryrefslogtreecommitdiff
path: root/upload_to_modrinth.sh
diff options
context:
space:
mode:
authorNotNite <hi@notnite.com>2023-06-20 15:16:52 -0400
committerNotNite <hi@notnite.com>2023-06-20 15:16:52 -0400
commit490d368baea7a5281ca2378d8ed812ff9d49dfc7 (patch)
treeeb33c07c221938abca45ef7b813203c20525aab4 /upload_to_modrinth.sh
parent20692e21107a35f5f45651f655a6a564fc570007 (diff)
downloadgloppers-490d368baea7a5281ca2378d8ed812ff9d49dfc7.tar.gz
gloppers-490d368baea7a5281ca2378d8ed812ff9d49dfc7.tar.bz2
gloppers-490d368baea7a5281ca2378d8ed812ff9d49dfc7.zip
Modrinth changes
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