Add DroneCI build
This commit is contained in:
parent
b078a154f3
commit
e615d7eb49
19
.drone.yml
Normal file
19
.drone.yml
Normal 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
17
pom.xml
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user