Switch to woodpecker CI

renovate/org.jetbrains.kotlinx-kotlinx-serialization-json-1.x
kalle 2022-10-14 17:15:53 +02:00
parent 50751166df
commit d0f6dc985b
1 changed files with 32 additions and 40 deletions

View File

@ -1,41 +1,33 @@
--- pipeline:
kind: pipeline build:
type: docker image: "eclipse-temurin:17-jdk"
name: default commands:
steps: - "./gradlew assemble"
- name: "Build" test:
image: "eclipse-temurin:17-jdk" image: "eclipse-temurin:17-jdk"
commands: commands:
- "./gradlew assemble" - "./gradlew test"
- name: "Test"
image: "eclipse-temurin:17-jdk"
commands:
- "./gradlew test"
- name: "Create Release" release:
image: plugins/gitea-release image: plugins/gitea-release
settings: settings:
api_key: api_key:
from_secret: "gitea_api_key" from_secret: "gitea_api_key"
base_url: base_url:
from_secret: "gitea_base_url" from_secret: "gitea_base_url"
files: build/libs/DLib-*.jar files: build/libs/DLib-*.jar
when: when:
event: event:
- tag - tag
- name: "Publish to Maven" maven:
image: "eclipse-temurin:17-jdk" image: "eclipse-temurin:17-jdk"
commands: commands:
- "./gradlew publishReleasePublicationToMavenRepository" - "./gradlew publishReleasePublicationToMavenRepository"
environment: environment:
MAVEN_REPO_URL: MAVEN_REPO_URL:
from_secret: maven_repo_url from_secret: maven_repo_url
MAVEN_REPO_TOKEN: MAVEN_REPO_TOKEN:
from_secret: gitea_api_key from_secret: gitea_api_key
when: when:
event: event:
- tag
trigger:
event:
- push
- tag - tag