From 93eae74344c40fb095efc8f24a0b277951edd4ca Mon Sep 17 00:00:00 2001 From: Sven-Torben Janus Date: Sat, 8 May 2021 00:57:06 +0200 Subject: [PATCH] Use GITHUB_TOKEN to authenticate for publishing packages --- .github/workflows/buildAndRelease.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/buildAndRelease.yml b/.github/workflows/buildAndRelease.yml index c2b2152..c67e4ff 100755 --- a/.github/workflows/buildAndRelease.yml +++ b/.github/workflows/buildAndRelease.yml @@ -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/')