Fix ossrh deployment sunset, publish to mavencentral (#84) #48
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: Deployment | |
| on: | |
| push: | |
| tags: [ '[0-9]+.[0-9]+.[0-9]+*' ] | |
| jobs: | |
| publish: | |
| if: github.repository == 'mv-gh/lemmybackwardscompatibleapi' && startsWith(github.ref, 'refs/tags') | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ macos-latest, ubuntu-latest, windows-latest ] | |
| environment: publish | |
| env: | |
| ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }} | |
| ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }} | |
| ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyId }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: SimonMarquis/ci-gradle-properties-action@v1 | |
| with: | |
| path: .github/gradle.properties | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v3 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: build | |
| run: ./gradlew build --no-daemon | |
| - name: publish | |
| run: ./gradlew publishAllPublicationsToMavenCentral --no-configuration-cache --no-daemon --stacktrace | |