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>
|
<groupId>fi.flexplex</groupId>
|
||||||
<artifactId>connect</artifactId>
|
<artifactId>connect</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.0</version>
|
||||||
<name>flexconnect</name>
|
<name>flexconnect</name>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
@ -12,7 +12,7 @@
|
|||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<finalName>FlexConnect</finalName>
|
<finalName>FlexConnect-1.0.${DRONE_BUILD_NUMBER}</finalName>
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
<directory>${basedir}/src/main/resources</directory>
|
<directory>${basedir}/src/main/resources</directory>
|
||||||
@ -32,19 +32,6 @@
|
|||||||
<target>16</target>
|
<target>16</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</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>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: FlexConnect
|
name: FlexConnect
|
||||||
version: 1.0
|
version: 1.0.${DRONE_BUILD_NUMBER}
|
||||||
api-version: 1.13
|
api-version: 1.13
|
||||||
description: Connect's your server to FlexPlex network.
|
description: Connect's your server to FlexPlex network.
|
||||||
author: FlexPlex
|
author: FlexPlex
|
||||||
|
Loading…
Reference in New Issue
Block a user