added job and configuration for publishing the artifacts on github packages

This commit is contained in:
Sheldan
2020-06-03 21:03:06 +02:00
parent 1091e66013
commit db8afde7ea
2 changed files with 25 additions and 0 deletions

17
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Java for publishing to GitHub Packages
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Publish to GitHub Packages
run: mvn -f abstracto-application/pom.xml -B deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -27,6 +27,14 @@
<module>coverage</module>
</modules>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/Sheldan/abstracto</url>
</repository>
</distributionManagement>
<build>
<plugins>