Add DroneCI build
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Jonttuuu 2022-05-05 17:32:26 +03:00
parent b078a154f3
commit e615d7eb49
3 changed files with 22 additions and 16 deletions

19
.drone.yml Normal file
View File

@ -0,0 +1,19 @@
kind: pipeline
name: default
steps:
- name: build
image: maven:3-openjdk-16
commands:
- mvn clean package
- name: gitea_release
image: plugins/gitea-release
settings:
base_url: https://git.jonttu.fi
api_key:
from_secret: GITEA_TOKEN
files:
- target/FlexCore-Paper-${DRONE_BUILD_NUMBER}.jar
when:
event: tag

17
pom.xml
View File

@ -4,7 +4,7 @@
<groupId>fi.flexplex</groupId>
<artifactId>connect</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0</version>
<name>flexconnect</name>
<properties>
@ -12,7 +12,7 @@
</properties>
<build>
<finalName>FlexConnect</finalName>
<finalName>FlexConnect-1.0.${DRONE_BUILD_NUMBER}</finalName>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
@ -32,19 +32,6 @@
<target>16</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

View File

@ -1,5 +1,5 @@
name: FlexConnect
version: 1.0
version: 1.0.${DRONE_BUILD_NUMBER}
api-version: 1.13
description: Connect's your server to FlexPlex network.
author: FlexPlex