Revert "Revert "Revert "One last release on gitlab"""
ci/woodpecker/push/docs Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2022-11-04 19:09:32 +01:00
parent 3563d7449b
commit eb6c2538b5
Signed by: Johannes
GPG Key ID: E76429612C2929F4
2 changed files with 6 additions and 62 deletions

View File

@ -1,55 +0,0 @@
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
default:
image: gradle:jdk18
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
- export TIMESTAMP=$(date -d "$CI_PIPELINE_CREATED_AT" +%s)
build_test:
stage: build
script:
- gradle --build-cache :exportMetadata -Ppublic -Ptimestamp=$TIMESTAMP
artifacts:
paths:
- version.json
expire_in: 2 days
build_platform_jars:
stage: build
script:
- gradle --build-cache :launcher-dist:build -Pflavor=fat -Ppublic -Ptimestamp=$TIMESTAMP
- gradle --build-cache :launcher-dist:build -Pflavor=windows -Ppublic -Ptimestamp=$TIMESTAMP
- gradle --build-cache :launcher-dist:build -Pflavor=linux -Ppublic -Ptimestamp=$TIMESTAMP
- gradle --build-cache :launcher-dist:build -Pflavor=macos -Ppublic -Ptimestamp=$TIMESTAMP
- for f in launcher-dist/build/libs/Inceptum-*-*-*.jar; do mv "$f" "Inceptum-${f##*-}";done
- mv Inceptum-fat.jar Inceptum.jar
artifacts:
paths:
- launcher-dist/build/libs
- Inceptum-*.jar
- Inceptum.jar
expire_in: 2 days
publish_debug:
stage: deploy
script:
- gradle --build-cache build publish -Pflavor=maven -Ppublic -Ptimestamp=$TIMESTAMP
- gradle --build-cache build :launcher-dist:publish -Pflavor=fat -Pdist.platformOnly -Ppublic -Ptimestamp=$TIMESTAMP
- gradle --build-cache build :launcher-dist:publish -Pflavor=windows -Pdist.platformOnly -Ppublic -Ptimestamp=$TIMESTAMP
- gradle --build-cache build :launcher-dist:publish -Pflavor=linux -Pdist.platformOnly -Ppublic -Ptimestamp=$TIMESTAMP
- gradle --build-cache build :launcher-dist:publish -Pflavor=macos -Pdist.platformOnly -Ppublic -Ptimestamp=$TIMESTAMP
only:
- master
publish_release:
stage: deploy
script:
- gradle --build-cache build publish -Pflavor=maven -Ppublic -Prelease
- gradle --build-cache build :launcher-dist:publish -Pflavor=fat -Pdist.platformOnly -Ppublic -Prelease
- gradle --build-cache build :launcher-dist:publish -Pflavor=windows -Pdist.platformOnly -Ppublic -Prelease
- gradle --build-cache build :launcher-dist:publish -Pflavor=linux -Pdist.platformOnly -Ppublic -Prelease
- gradle --build-cache build :launcher-dist:publish -Pflavor=macos -Pdist.platformOnly -Ppublic -Prelease
only:
- master

View File

@ -17,16 +17,15 @@ publishing {
mavenLocal()
if (rootProject.extra["isPublic"] == true) {
maven {
url = uri("https://gitlab.com/api/v4/projects/30862253/packages/maven")
name = "gitlab"
maven("https://maven.frohnmeyer-wds.de/artifacts") {
name = "public"
credentials(HttpHeaderCredentials::class) {
name = "Job-Token"
value = System.getenv()["CI_JOB_TOKEN"]
credentials(PasswordCredentials::class) {
username = System.getenv()["MAVEN_NAME"]
password = System.getenv()["MAVEN_TOKEN"]
}
authentication {
create<HttpHeaderAuthentication>("header")
create<BasicAuthentication>("basic")
}
}
}