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

14
pom.xml
View File

@ -10,8 +10,8 @@
<distributionManagement>
<repository>
<id>github-clcore</id>
<name>GitHub CLCore Packages</name>
<id>github</id>
<name>GitHub SydMontague Apache Maven Packages</name>
<url>https://maven.pkg.github.com/SydMontague/ImageMaps</url>
</repository>
</distributionManagement>
@ -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>