Use workflows from build conventions repository (#1589) #1550
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 Snapshot builds | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| workflow_dispatch: | |
| # 👇 This line ensures only one snapshot publish runs at a time. | |
| concurrency: | |
| group: snapshot-publish | |
| cancel-in-progress: false | |
| jobs: | |
| publish: | |
| name: Snapshot build and publish | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Check out code | |
| uses: actions/[email protected] | |
| - uses: GetStream/android-ci-actions/actions/setup-java@main | |
| - name: Publish to MavenCentral | |
| run: ./gradlew publishToMavenCentral --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 }} | |
| ORG_GRADLE_PROJECT_RELEASE_SIGNING_ENABLED: true | |
| SNAPSHOT: true | |
| - name: Show snapshot version | |
| run: ./scripts/show-last-snapshot-update.sh | |
| env: | |
| SNAPSHOT: true |