1.4.1 #34
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 | |
| on: | |
| release: | |
| types: [released, prereleased] | |
| workflow_dispatch: | |
| inputs: | |
| module: | |
| description: 'Module to publish' | |
| required: false | |
| type: choice | |
| options: | |
| - '' | |
| - ':chasm-gradle-plugin:' | |
| - ':chasm-gradle-plugin-api:' | |
| - ':chasm-gradle-plugin-compat:' | |
| - ':chasm-gradle-plugin-codegen:' | |
| - ':chasm-gradle-plugin-agp8:' | |
| - ':chasm-gradle-plugin-agp9:' | |
| default: '' | |
| jobs: | |
| publish: | |
| name: Release build and publish | |
| runs-on: macos-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v5 | |
| - name: Set up jdk@21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'corretto' | |
| java-version: '21' | |
| - name: Publish to MavenCentral | |
| run: ./gradlew ${{ github.event.inputs.module }}publishToMavenCentral --no-configuration-cache | |
| env: | |
| ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
| ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_CONTENTS }} |