[SubMob/BaseMob#32] Update dependency com.android.library to v9.4.0 #849
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: BaseMob CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - develop | |
| - master | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Setup Gradle Repo | |
| uses: Oztechan/Global/actions/setup-gradle-repo@8610938e630b3ed86127765237fe3647b9fabd4f | |
| - name: Gradle Build | |
| run: ./gradlew build | |
| # Publish only on a merge to develop/master, and only after the build above passes. | |
| # develop -> X.Y-SNAPSHOT (unsigned), master -> X.Y.Z release (signed). | |
| - name: Publish | |
| if: github.event_name == 'push' | |
| # Normalize the armored GPG key: literal "\n" -> real newlines (vanniktech's | |
| # signingInMemoryKey needs real newlines); a correct key passes through unchanged. | |
| run: | | |
| export ORG_GRADLE_PROJECT_signingInMemoryKey="$(printf '%b' "$GPG_KEY_RAW")" | |
| ./gradlew publishToMavenCentral --no-configuration-cache | |
| env: | |
| ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_USERNAME }} | |
| ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_PASSWORD }} | |
| GPG_KEY_RAW: ${{ secrets.GPG_KEY }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_PASSWORD }} | |
| - name: Notify slack success | |
| if: success() && github.event_name == 'push' | |
| env: | |
| SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
| uses: voxmedia/github-action-slack-notify-build@v2 | |
| with: | |
| channel: submob | |
| status: SUCCESS | |
| color: good | |
| - name: Notify slack fail | |
| if: failure() | |
| env: | |
| SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
| uses: voxmedia/github-action-slack-notify-build@v2 | |
| with: | |
| channel: submob | |
| status: FAILED | |
| color: danger |