36 lines
696 B
YAML
36 lines
696 B
YAML
image: gradle:jdk16
|
|
|
|
variables:
|
|
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
|
|
|
before_script:
|
|
- export GRADLE_USER_HOME=`pwd`/.gradle
|
|
|
|
stages:
|
|
- deployTest
|
|
- deployReal
|
|
|
|
build_test:
|
|
stage: deployTest
|
|
script:
|
|
- gradle --build-cache build publish -PpublicMaven -Ppipeline=$CI_PIPELINE_ID
|
|
- cp build/libs/* ./
|
|
- rm *-maven.jar *-sources.jar *-sources-dev.jar
|
|
- mv *-dev.jar dev.zip
|
|
- mv *.jar latest.jar
|
|
- mv dev.zip latest-dev.jar
|
|
artifacts:
|
|
paths:
|
|
- build/libs
|
|
- latest.jar
|
|
- latest-dev.jar
|
|
|
|
deploy:
|
|
stage: deployReal
|
|
when: manual
|
|
script:
|
|
- gradle --build-cache build publish modrinth curseforge -PpublicMaven
|
|
only:
|
|
- master
|
|
|