diff --git a/.github/workflows/build_and_release_github.yml b/.github/workflows/build_and_release_github.yml index 777a809..5be0842 100644 --- a/.github/workflows/build_and_release_github.yml +++ b/.github/workflows/build_and_release_github.yml @@ -6,7 +6,7 @@ on: - '*' jobs: - createrelease: + release: name: createrelease runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') @@ -38,9 +38,13 @@ jobs: env: GPG_SIGNING_KEY_PW: ${{ secrets.GPG_PASSPHRASE }} - - name: Build and release package - run: ./gradlew clean build githubRelease + - name: Build package + run: ./gradlew clean build env: GPG_SIGNING_KEY: ${{ secrets.GPG_PRIVATE_KEY }} GPG_SIGNING_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + + - name: Release package + run: ./gradlew githubRelease + env: RELEASE_GRADLE_PLUGIN_TOKEN: ${{ secrets.RELEASE_GRADLE_PLUGIN_TOKEN }}