Fix build #15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish to Maven Central | |
| on: | |
| push: | |
| tags: [ '*' ] | |
| env: | |
| SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
| SIGNING_KEY: ${{ secrets.PGP_KEY }} | |
| SIGNING_PASSWORD: ${{ secrets.PGP_PASSWORD }} | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/[email protected] | |
| - name: Set up JDK 21 | |
| uses: actions/[email protected] | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/[email protected] | |
| - name: Publish to Maven Central | |
| run: ./gradlew publishAggregationToCentralPortal -Pversion=${{ github.ref_name }} | |
| - name: Breakpoint if publish failed | |
| if: failure() | |
| uses: namespacelabs/breakpoint-action@v0 | |
| with: | |
| duration: 30m | |
| authorized-users: Seggan |