1
0
mirror of https://github.com/nkomarn/harbor.git synced 2024-12-18 22:37:36 +01:00

Set up Packages

This commit is contained in:
Mykyta 2020-03-08 15:19:47 -07:00
parent 3004125ef9
commit 3166780468
No known key found for this signature in database
GPG Key ID: C147E30C19EA3570
3 changed files with 52 additions and 2 deletions

View File

@ -12,8 +12,11 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn package --file pom.xml
- name: Build with Maven and Deploy
env:
GITHUB_USERNAME: x-access-token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn --settings settings.xml deploy
- name: Upload Artifact
uses: actions/upload-artifact@v2-preview
with:

View File

@ -80,4 +80,12 @@
</plugins>
</pluginManagement>
</build>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub nkomarn Apache Maven Packages</name>
<url>https://maven.pkg.github.com/nkomarn/Harbor</url>
</repository>
</distributionManagement>
</project>

39
settings.xml Normal file
View File

@ -0,0 +1,39 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>github</id>
<name>GitHub nkomarn Apache Maven Packages</name>
<url>https://maven.pkg.github.com/nkomarn </url>
</repository>
</repositories>
</profile>
</profiles>
<servers>
<server>
<id>github</id>
<username>${env.GITHUB_USERNAME}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>