Create maven-publish.yml

This commit is contained in:
bmack94 2021-07-16 20:17:12 +02:00 committed by GitHub
parent 298a68296c
commit ca79a0a8ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

16
.github/workflows/maven-publish.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Publish package to GitHub Packages
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 16
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}