GitHub Actions integration

This commit is contained in:
SydMontague 2020-07-18 23:57:29 +02:00
parent 075bf2a098
commit c1c1be04cb
2 changed files with 19 additions and 10 deletions

View File

@ -21,7 +21,10 @@ jobs:
with:
java-version: 1.8
- name: Build with Maven
run: mvn -B package --file pom.xml
run: |
mkdir -p ~/.m2
echo "<settings><servers><server><id>github</id><username>${{ github.actor }}</username><password>${{ github.token }}</password></server></servers></settings>" > ~/.m2/settings.xml
mvn -B package --file pom.xml
- uses: actions/upload-artifact@v1
with:
name: Package

24
pom.xml
View File

@ -7,15 +7,15 @@
<version>1.0.0-SNAPSHOT</version>
<name>ImageMaps</name>
<description>Draw Images on maps!</description>
<distributionManagement>
<repository>
<id>github-clcore</id>
<name>GitHub CLCore Packages</name>
<url>https://maven.pkg.github.com/SydMontague/ImageMaps</url>
</repository>
<repository>
<id>github</id>
<name>GitHub SydMontague Apache Maven Packages</name>
<url>https://maven.pkg.github.com/SydMontague/ImageMaps</url>
</repository>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@ -27,8 +27,8 @@
</repository>
<repository>
<id>github</id>
<name>GitHub SydMontague Apache Maven Packages</name>
<url>https://maven.pkg.github.com/SydMontague/</url>
<name>GitHub CLCore Packages</name>
<url>https://maven.pkg.github.com/SydMontague/CLCore</url>
</repository>
</repositories>
@ -43,6 +43,12 @@
<groupId>de.craftlancer</groupId>
<artifactId>clcore</artifactId>
<version>0.4.0-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>