Switch to woodpecker CI
parent
50751166df
commit
d0f6dc985b
70
.drone.yml
70
.drone.yml
|
@ -1,41 +1,33 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
steps:
|
||||
- name: "Build"
|
||||
image: "eclipse-temurin:17-jdk"
|
||||
commands:
|
||||
- "./gradlew assemble"
|
||||
- name: "Test"
|
||||
image: "eclipse-temurin:17-jdk"
|
||||
commands:
|
||||
- "./gradlew test"
|
||||
pipeline:
|
||||
build:
|
||||
image: "eclipse-temurin:17-jdk"
|
||||
commands:
|
||||
- "./gradlew assemble"
|
||||
test:
|
||||
image: "eclipse-temurin:17-jdk"
|
||||
commands:
|
||||
- "./gradlew test"
|
||||
|
||||
- name: "Create Release"
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: "gitea_api_key"
|
||||
base_url:
|
||||
from_secret: "gitea_base_url"
|
||||
files: build/libs/DLib-*.jar
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
- name: "Publish to Maven"
|
||||
image: "eclipse-temurin:17-jdk"
|
||||
commands:
|
||||
- "./gradlew publishReleasePublicationToMavenRepository"
|
||||
environment:
|
||||
MAVEN_REPO_URL:
|
||||
from_secret: maven_repo_url
|
||||
MAVEN_REPO_TOKEN:
|
||||
from_secret: gitea_api_key
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
release:
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: "gitea_api_key"
|
||||
base_url:
|
||||
from_secret: "gitea_base_url"
|
||||
files: build/libs/DLib-*.jar
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
maven:
|
||||
image: "eclipse-temurin:17-jdk"
|
||||
commands:
|
||||
- "./gradlew publishReleasePublicationToMavenRepository"
|
||||
environment:
|
||||
MAVEN_REPO_URL:
|
||||
from_secret: maven_repo_url
|
||||
MAVEN_REPO_TOKEN:
|
||||
from_secret: gitea_api_key
|
||||
when:
|
||||
event:
|
||||
- tag
|
Loading…
Reference in New Issue