Rename the module name #21
This file contains 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 Snapshot builds | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
publish: | |
name: Release build and publish | |
runs-on: macos-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3.1.0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3.5.1 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Release build | |
run: ./gradlew assemble --scan | |
- name: Publish to MavenCentral | |
run: | | |
./gradlew publishAllPublicationsToMavenCentral --no-configuration-cache | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} | |
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }} | |
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} | |
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} | |
SNAPSHOT: true |