build(release): hotfix 0.21.1 — add missing POM_NAME for apertus/voxt… #6
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: release | |
| on: | |
| push: | |
| tags: | |
| - '**' | |
| jobs: | |
| publish: | |
| name: Release build and publish | |
| runs-on: macOS-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 25 | |
| - name: Validate signing configuration | |
| run: | | |
| if ! grep -Eq '^[[:space:]]*signAllPublications[[:space:]]*=[[:space:]]*true[[:space:]]*$' gradle.properties; then | |
| echo "signAllPublications must be set to true in gradle.properties to publish." >&2 | |
| echo "Current setting:" >&2 | |
| grep -n 'signAllPublications' gradle.properties || echo "No signAllPublications property found" >&2 | |
| exit 1 | |
| fi | |
| - name: Publish to MavenCentral | |
| run: ./gradlew publish --no-configuration-cache --stacktrace | |
| env: | |
| ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
| ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_PRIVATE_KEY }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} |