From 870ab9e55fa3a8f65bb3cfdd5b3a9230a35382a9 Mon Sep 17 00:00:00 2001 From: CXwudi <1113421658@qq.com> Date: Thu, 7 May 2020 23:32:57 -0700 Subject: [PATCH] add git token --- .github/workflows/mavenpublish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/mavenpublish.yml b/.github/workflows/mavenpublish.yml index 0599637..43f7c38 100644 --- a/.github/workflows/mavenpublish.yml +++ b/.github/workflows/mavenpublish.yml @@ -26,7 +26,10 @@ jobs: - name: GH Release uses: softprops/action-gh-release@v0.1.5 + if: startsWith(github.ref, 'refs/tags/') with: body: Auto-released by Github Action prerelease: true files: /.jar + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}