Fix paste race, privacy, and detection false positives #31
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Build debug APK | |
| run: ./gradlew assembleDebug | |
| - name: Run lint | |
| run: ./gradlew lintDebug | |
| - name: Decode keystore | |
| if: github.event_name == 'push' | |
| run: echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > app/release.keystore | |
| - name: Build release APK | |
| if: github.event_name == 'push' | |
| run: ./gradlew assembleRelease | |
| env: | |
| CASHPILOT_KEYSTORE_PATH: release.keystore | |
| CASHPILOT_KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | |
| CASHPILOT_KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | |
| CASHPILOT_KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
| - name: Remove keystore | |
| if: always() | |
| run: rm -f app/release.keystore | |
| - name: Upload debug APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: app-debug | |
| path: app/build/outputs/apk/debug/app-debug.apk | |
| - name: Upload release APK | |
| if: github.event_name == 'push' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: app-release | |
| path: app/build/outputs/apk/release/app-release.apk |