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
11permissions:
12 contents: read
13
14concurrency:
15 group: mobile-android-apk
16 cancel-in-progress: false
17
18jobs:
19 mirror:
20 name: Mirror beta APK
21 if: github.repository == 'pingdotgg/t3code'
22 runs-on: blacksmith-2vcpu-ubuntu-2404
23 timeout-minutes: 10
24 permissions:
25 contents: write
26 env:
27 PACKAGE_NAME: com.t3tools.t3code
28 steps:
29 - id: credentials
30 name: Check for Play credentials
31 env:
32 GOOGLE_PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
33 run: |
34 if [ -n "$GOOGLE_PLAY_SERVICE_ACCOUNT_JSON" ]; then
35 echo "present=true" >> "$GITHUB_OUTPUT"
36 else
37 echo "present=false" >> "$GITHUB_OUTPUT"
38 echo "GOOGLE_PLAY_SERVICE_ACCOUNT_JSON is not available; skipping APK mirror."
39 fi
40
41 - name: Checkout
42 if: steps.credentials.outputs.present == 'true'
43 uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
44 with:
45 sparse-checkout: .github/scripts
46
47 - name: Mirror the newest APK
48 if: steps.credentials.outputs.present == 'true'
49 env:
50 GH_TOKEN: ${{ github.token }}
51 GH_REPO: ${{ github.repository }}
52 GOOGLE_PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
53 run: node .github/scripts/mirror-play-apk.cjs