Commit f19794b7 by Jonathan Thomas

Adding response.txt artifact and logging to deploy scripts.

parent 5ec2bf19
Pipeline #12569 passed with stages
in 2 minutes 19 seconds
......@@ -115,6 +115,9 @@ Modrinth:
- ./deploy-modrinth.sh
only:
- develop
artifacts:
paths:
- response.txt
tags:
- minecraft
......@@ -127,5 +130,8 @@ CurseForge:
- ./deploy-curseforge.sh
only:
- develop
artifacts:
paths:
- response.txt
tags:
- minecraft
......@@ -8,7 +8,7 @@ API_URL="https://minecraft.curseforge.com/api"
PROJECT_ID=1012118
DEPENDENCY_SLUG="fabric-api"
USER_AGENT="CreatureChat-Minecraft-Mod:curseforge@owlmaddie.com"
SLEEP_DURATION=10
SLEEP_DURATION=30
# Function to fetch game version IDs
fetch_game_version_ids() {
......@@ -49,6 +49,7 @@ echo ""
# Iterate over each jar file in the artifacts
for FILE in creaturechat*.jar; do
if [ -f "$FILE" ]; then
echo "--------------$FILE----------------"
FILE_BASENAME=$(basename "$FILE")
OUR_VERSION=$(echo "$FILE_BASENAME" | sed -n 's/creaturechat-\(.*\)+.*\.jar/\1/p')
MINECRAFT_VERSION=$(echo "$FILE_BASENAME" | sed -n 's/.*+\(.*\)\.jar/\1/p')
......
......@@ -31,6 +31,7 @@ echo ""
# Iterate over each jar file in the artifacts
for FILE in creaturechat*.jar; do
if [ -f "$FILE" ]; then
echo "--------------$FILE----------------"
FILE_BASENAME=$(basename "$FILE")
OUR_VERSION=$(echo "$FILE_BASENAME" | sed -n 's/creaturechat-\(.*\)+.*\.jar/\1/p')
MINECRAFT_VERSION=$(echo "$FILE_BASENAME" | sed -n 's/.*+\(.*\)\.jar/\1/p')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment