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: with:
java-version: 1.8 java-version: 1.8
- name: Build with Maven - 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 - uses: actions/upload-artifact@v1
with: with:
name: Package name: Package

14
pom.xml
View File

@ -10,8 +10,8 @@
<distributionManagement> <distributionManagement>
<repository> <repository>
<id>github-clcore</id> <id>github</id>
<name>GitHub CLCore Packages</name> <name>GitHub SydMontague Apache Maven Packages</name>
<url>https://maven.pkg.github.com/SydMontague/ImageMaps</url> <url>https://maven.pkg.github.com/SydMontague/ImageMaps</url>
</repository> </repository>
</distributionManagement> </distributionManagement>
@ -27,8 +27,8 @@
</repository> </repository>
<repository> <repository>
<id>github</id> <id>github</id>
<name>GitHub SydMontague Apache Maven Packages</name> <name>GitHub CLCore Packages</name>
<url>https://maven.pkg.github.com/SydMontague/</url> <url>https://maven.pkg.github.com/SydMontague/CLCore</url>
</repository> </repository>
</repositories> </repositories>
@ -43,6 +43,12 @@
<groupId>de.craftlancer</groupId> <groupId>de.craftlancer</groupId>
<artifactId>clcore</artifactId> <artifactId>clcore</artifactId>
<version>0.4.0-SNAPSHOT</version> <version>0.4.0-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
</dependency> </dependency>
</dependencies> </dependencies>