Use GITHUB_TOKEN to authenticate for publishing packages
This commit is contained in:
parent
cad8e1b7dd
commit
93eae74344
1 changed files with 2 additions and 0 deletions
2
.github/workflows/buildAndRelease.yml
vendored
2
.github/workflows/buildAndRelease.yml
vendored
|
@ -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/')
|
||||
|
|
Loading…
Reference in a new issue