release: 3.12.0 #120
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: Upload Archives | |
| on: | |
| push: | |
| tags: '[0-9]+.[0-9]+.[0-9]+*' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| env: | |
| ANDROID_API_LEVEL: 23 | |
| ANDROID_EMULATOR_LEVEL: 23 | |
| ANDROID_BUILD_TOOLS_VERSION: 28.0.3 | |
| ANDROID_TAG: google_apis | |
| ADB_INSTALL_TIMEOUT: 20 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout submodules | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| submodules: recursive | |
| token: ${{ secrets.ACCESS_TOKEN }} | |
| persist-credentials: false | |
| - name: set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 17.0.10 | |
| distribution: "adopt" | |
| cache: gradle | |
| - name: Add Maven Central Repository credentials and keys to gradle.properties | |
| run: | | |
| echo "mavenCentralUsername=${{ secrets.OSSRH_USERNAME }}" >> gradle.properties | |
| echo "mavenCentralPassword=${{ secrets.OSSRH_PASSWORD }}" >> gradle.properties | |
| echo "signing.keyId=${{ secrets.SIGNING_KEY_ID }}" >> gradle.properties | |
| echo "signing.password=${{ secrets.SIGNING_PASSWORD }}" >> gradle.properties | |
| echo "signing.secretKeyRingFile=secret_key.gpg" >> gradle.properties | |
| - name: Prepare signing secret key ring file | |
| run: echo "${{ secrets.SIGNING_KEY }}" | base64 --decode > backtrace-library/secret_key.gpg | |
| - name: Accept Android SDK licences | |
| run: yes | "${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager" --licenses | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build and upload | |
| run: ./gradlew build publishAllPublicationsToMavenCentralRepository | |
| - uses: xresloader/upload-to-github-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| file: "example-app/build/outputs/native-debug-symbols/release/native-debug-symbols.zip;example-app/build/outputs/apk/debug/example-app-debug.apk" | |
| draft: true | |
| verbose: env.ACTIONS_STEP_DEBUG |