Use GITHUB_TOKEN to authenticate for publishing packages

This commit is contained in:
Sven-Torben Janus 2021-05-08 00:57:06 +02:00
parent cad8e1b7dd
commit 93eae74344

View file

@ -28,6 +28,8 @@ jobs:
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B clean deploy -s maven-github-settings.xml --file pom.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')