diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml index a387366b..88d27d7e 100644 --- a/.github/workflows/gradle-publish.yml +++ b/.github/workflows/gradle-publish.yml @@ -1,11 +1,11 @@ name: Publish to Maven on: - release: - types: [created] - push: - tags: - - '*' + release: + types: [ created ] + create: + tags: + - '*' jobs: publish: @@ -15,21 +15,21 @@ jobs: packages: write steps: - - uses: actions/checkout@v4 - - name: Set up JDK - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - server-id: github - settings-path: ${{ github.workspace }} + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + server-id: github + settings-path: ${{ github.workspace }} - - name: Publish to Maven Repository - uses: gradle/gradle-build-action@v3.3.2 - with: - arguments: --build-cache publish - env: - gpg_private_key: ${{ secrets.gpg_private_key }} - gpg_passphrase: ${{ secrets.gpg_passphrase }} - nexus_username: ${{ secrets.nexus_username }} - nexus_password: ${{ secrets.nexus_password }} + - name: Publish to Maven Repository + uses: gradle/gradle-build-action@v3.3.2 + with: + arguments: --build-cache publish + env: + gpg_private_key: ${{ secrets.gpg_private_key }} + gpg_passphrase: ${{ secrets.gpg_passphrase }} + nexus_username: ${{ secrets.nexus_username }} + nexus_password: ${{ secrets.nexus_password }}