DNM: test install groups #158
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: Sentry Android Build Distribution | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - android/** | |
| - .github/workflows/android_beta_build.yml | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./android | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: "21" | |
| distribution: "temurin" | |
| - name: Setup Gradle build action | |
| uses: gradle/actions/setup-gradle@v6 | |
| - name: Decode Keystore | |
| env: | |
| ENCODED_KEYSTORE: ${{ secrets.ANDROID_RELEASE_KEYSTORE_BASE64 }} | |
| run: | | |
| echo $ENCODED_KEYSTORE > keystore_base64.txt | |
| base64 -d keystore_base64.txt > ${{ runner.temp }}/keystore.jks | |
| - name: Build beta APK and upload to Sentry Build Distribution | |
| env: | |
| DECODED_KEYSTORE_PATH: ${{ runner.temp }}/keystore.jks | |
| RELEASE_KEY_ALIAS: ${{ secrets.ANDROID_RELEASE_KEY_ALIAS }} | |
| RELEASE_KEY_PASSWORD: ${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }} | |
| RELEASE_STORE_PASSWORD: ${{ secrets.ANDROID_RELEASE_STORE_PASSWORD }} | |
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_SENTRY_AUTH_TOKEN }} | |
| SENTRY_DISTRIBUTION_AUTH_TOKEN: ${{ secrets.SENTRY_DISTRIBUTION_AUTH_TOKEN }} | |
| run: ./gradlew :app:assembleBeta | |
| - name: Upload APK | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| path: ./android/app/build/outputs/apk/beta/app-beta.apk | |
| name: hackernews-beta-${{github.sha}}.apk | |
| if-no-files-found: error |