Commit 2e80120e by Jonathan Thomas

Experimental changes to download fabric api version required v10

parent ce2cf205
Pipeline #11880 passed with stage
in 19 seconds
...@@ -14,17 +14,18 @@ build_mod: ...@@ -14,17 +14,18 @@ build_mod:
script: script:
- ./gradlew build - ./gradlew build
- find build/libs -type f -name '*sources*.jar' -exec rm {} \; - find build/libs -type f -name '*sources*.jar' -exec rm {} \;
- mv build/libs/mobgpt-*.jar .
- export FABRIC_VERSION=$(grep 'fabric_version' gradle.properties | cut -d'=' -f2) - export FABRIC_VERSION=$(grep 'fabric_version' gradle.properties | cut -d'=' -f2)
- export FABRIC_API_JAR="fabric-api-${FABRIC_VERSION}.jar" - export FABRIC_API_JAR="fabric-api-${FABRIC_VERSION}.jar"
- echo Detected Fabric API version from gradle.properties $FABRIC_API_JAR - echo Detected Fabric API version from gradle.properties $FABRIC_API_JAR
- export DOWNLOAD_URL="https://github.com/FabricMC/fabric/releases/download/${FABRIC_VERSION//+/%2B}/${FABRIC_API_JAR}" - export DOWNLOAD_URL="https://github.com/FabricMC/fabric/releases/download/${FABRIC_VERSION//+/%2B}/${FABRIC_API_JAR}"
- echo Download Fabric API from $DOWNLOAD_URL - echo Download Fabric API from $DOWNLOAD_URL
- wget -q -O "build/libs/${FABRIC_API_JAR}" $DOWNLOAD_URL - wget -q -O "${FABRIC_API_JAR}" $DOWNLOAD_URL
artifacts: artifacts:
paths: paths:
- build/libs/mobgpt-*.jar - mobgpt-*.jar
- build/libs/fabric-api-*.jar - fabric-api-*.jar
only: only:
- develop - develop
tags: tags:
......
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