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