fix(msmp): add checks for browser target #152
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 & Release | |
| on: | |
| push: | |
| branches: [ main ] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Grant execute permission to gradlew | |
| run: chmod +x ./gradlew | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| release-type: simple | |
| config-file: .github/release-please/release-please-config.json | |
| manifest-file: .github/release-please/release-please-manifest.json | |
| - name: Set up JDK | |
| if: ${{ steps.release.outputs.release_created }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: zulu | |
| java-version: 21 | |
| - name: ABI Validation | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: ./gradlew checkLegacyAbi -Pfull-build=true --no-configuration-cache | |
| - name: Publish and release to Maven Central | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: | | |
| version="${{ steps.release.outputs.tag_name }}" | |
| version="${version#v}" | |
| ./gradlew publishToMavenCentral \ | |
| -Pversion=$version \ | |
| -Pfull-build=true \ | |
| --no-configuration-cache | |
| env: | |
| ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
| ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} |