Commit d92dd767 by Jonathan Thomas

Experimental changes to download fabric api version required v4

parent e33fe2bb
Pipeline #11874 passed with stage
in 17 seconds
...@@ -12,19 +12,20 @@ stages: ...@@ -12,19 +12,20 @@ stages:
build_mod: build_mod:
stage: build stage: build
script: script:
- echo "Reading Fabric version from gradle.properties..." - ./gradlew build
- FABRIC_VERSION=$(grep 'fabric_version' gradle.properties | cut -d'=' -f2) - find build/libs -type f -name '*sources*.jar' -exec rm {} \;
- echo "Fabric version: $FABRIC_VERSION" - export FABRIC_VERSION=$(grep 'fabric_version' gradle.properties | cut -d'=' -f2)
- #echo "Constructing download URL..." - echo $FABRIC_VERSION
- #DOWNLOAD_URL="https://github.com/FabricMC/fabric/releases/download/${FABRIC_VERSION//+/%2B}/fabric-api-${FABRIC_VERSION}.jar" - export FABRIC_API_JAR="fabric-api-${FABRIC_VERSION}.jar"
- #echo "Download URL: $DOWNLOAD_URL" - echo $FABRIC_API_JAR
- #echo "Downloading Fabric API..." - export DOWNLOAD_URL="https://github.com/FabricMC/fabric/releases/download/${FABRIC_VERSION//+/%2B}/${FABRIC_API_JAR}"
- #wget $DOWNLOAD_URL - echo $DOWNLOAD_URL
- #echo "Fabric API downloaded." - wget -O "${FABRIC_API_JAR}" $DOWNLOAD_URL
artifacts: artifacts:
paths: paths:
- build/libs/*.jar - build/libs/*.jar
- "fabric-api-${FABRIC_VERSION}.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