FabledSkyBlock/.gitlab-ci.yml
2019-04-15 03:11:10 -06:00

23 lines
519 B
YAML

image: gradle:alpine
variables:
path: "/builds/$CI_PROJECT_PATH"
version: "Build-73"
before_script:
- export GRADLE_USER_HOME=$path/.gradle
stages:
- build
build:
stage: build
script:
- find $path/ -type f -name "*.yml" -print0 | xargs -0 sed -i -e s/gradle-version-number/$version/g
- find $path/ -type f -name "*.gradle" -print0 | xargs -0 sed -i -e s/gradle-version-number/$version/g
- gradle clean build
- mv $path/build/libs/*.jar $path/
artifacts:
paths:
- $path/*.jar