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: ...@@ -115,6 +115,9 @@ Modrinth:
- ./deploy-modrinth.sh - ./deploy-modrinth.sh
only: only:
- develop - develop
artifacts:
paths:
- response.txt
tags: tags:
- minecraft - minecraft
...@@ -127,5 +130,8 @@ CurseForge: ...@@ -127,5 +130,8 @@ CurseForge:
- ./deploy-curseforge.sh - ./deploy-curseforge.sh
only: only:
- develop - develop
artifacts:
paths:
- response.txt
tags: tags:
- minecraft - minecraft
...@@ -8,7 +8,7 @@ API_URL="https://minecraft.curseforge.com/api" ...@@ -8,7 +8,7 @@ API_URL="https://minecraft.curseforge.com/api"
PROJECT_ID=1012118 PROJECT_ID=1012118
DEPENDENCY_SLUG="fabric-api" DEPENDENCY_SLUG="fabric-api"
USER_AGENT="CreatureChat-Minecraft-Mod:curseforge@owlmaddie.com" USER_AGENT="CreatureChat-Minecraft-Mod:curseforge@owlmaddie.com"
SLEEP_DURATION=10 SLEEP_DURATION=30
# Function to fetch game version IDs # Function to fetch game version IDs
fetch_game_version_ids() { fetch_game_version_ids() {
...@@ -49,6 +49,7 @@ echo "" ...@@ -49,6 +49,7 @@ echo ""
# Iterate over each jar file in the artifacts # Iterate over each jar file in the artifacts
for FILE in creaturechat*.jar; do for FILE in creaturechat*.jar; do
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
echo "--------------$FILE----------------"
FILE_BASENAME=$(basename "$FILE") FILE_BASENAME=$(basename "$FILE")
OUR_VERSION=$(echo "$FILE_BASENAME" | sed -n 's/creaturechat-\(.*\)+.*\.jar/\1/p') OUR_VERSION=$(echo "$FILE_BASENAME" | sed -n 's/creaturechat-\(.*\)+.*\.jar/\1/p')
MINECRAFT_VERSION=$(echo "$FILE_BASENAME" | sed -n 's/.*+\(.*\)\.jar/\1/p') MINECRAFT_VERSION=$(echo "$FILE_BASENAME" | sed -n 's/.*+\(.*\)\.jar/\1/p')
......
...@@ -31,6 +31,7 @@ echo "" ...@@ -31,6 +31,7 @@ echo ""
# Iterate over each jar file in the artifacts # Iterate over each jar file in the artifacts
for FILE in creaturechat*.jar; do for FILE in creaturechat*.jar; do
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
echo "--------------$FILE----------------"
FILE_BASENAME=$(basename "$FILE") FILE_BASENAME=$(basename "$FILE")
OUR_VERSION=$(echo "$FILE_BASENAME" | sed -n 's/creaturechat-\(.*\)+.*\.jar/\1/p') OUR_VERSION=$(echo "$FILE_BASENAME" | sed -n 's/creaturechat-\(.*\)+.*\.jar/\1/p')
MINECRAFT_VERSION=$(echo "$FILE_BASENAME" | sed -n 's/.*+\(.*\)\.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