image: gradle:jdk16 variables: GRADLE_OPTS: "-Dorg.gradle.daemon=false" before_script: - export GRADLE_USER_HOME=`pwd`/.gradle build_test: stage: deploy script: - gradle --build-cache build publish - 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: deploy when: manual script: - gradle --build-cache publish modrinth curseforge -Ptype=release only: - master