The best way to control Claude Code, Codex and more from any computer or phone
| 1 | name: Mobile Android APK |
| 2 | |
| 3 | # Checks closed testing hourly. Each new beta gets one versioned prerelease. |
| 4 | # Unchanged checks publish nothing. |
| 5 | on: |
| 6 | schedule: |
| 7 | # Avoid minute zero, when GitHub scheduled jobs are busiest. |
| 8 | - cron: "23 * * * *" |
| 9 | workflow_dispatch: |
| 10 | |
| 11 | concurrency: |
| 12 | group: mobile-android-apk |
| 13 | cancel-in-progress: false |
| 14 | |
| 15 | jobs: |
| 16 | mirror: |
| 17 | name: Mirror beta APK |
| 18 | if: github.repository == 'pingdotgg/t3code' |
| 19 | runs-on: blacksmith-2vcpu-ubuntu-2404 |
| 20 | timeout-minutes: 10 |
| 21 | permissions: |
| 22 | contents: write |
| 23 | env: |
| 24 | PACKAGE_NAME: com.t3tools.t3code |
| 25 | steps: |
| 26 | - id: credentials |
| 27 | name: Check for Play credentials |
| 28 | env: |
| 29 | GOOGLE_PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }} |
| 30 | run: | |
| 31 | if [ -n "$GOOGLE_PLAY_SERVICE_ACCOUNT_JSON" ]; then |
| 32 | echo "present=true" >> "$GITHUB_OUTPUT" |
| 33 | else |
| 34 | echo "present=false" >> "$GITHUB_OUTPUT" |
| 35 | echo "GOOGLE_PLAY_SERVICE_ACCOUNT_JSON is not available; skipping APK mirror." |
| 36 | fi |
| 37 | |
| 38 | - name: Checkout |
| 39 | if: steps.credentials.outputs.present == 'true' |
| 40 | uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 |
| 41 | with: |
| 42 | sparse-checkout: .github/scripts |
| 43 | |
| 44 | - name: Mirror the newest APK |
| 45 | if: steps.credentials.outputs.present == 'true' |
| 46 | env: |
| 47 | GH_TOKEN: ${{ github.token }} |
| 48 | GH_REPO: ${{ github.repository }} |
| 49 | GOOGLE_PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }} |
| 50 | run: node .github/scripts/mirror-play-apk.cjs |