Skip to content

app-distribution-daily #568

app-distribution-daily

app-distribution-daily #568

name: app-distribution-daily
on:
schedule:
- cron: '31 7 * * MON-FRI'
workflow_dispatch:
jobs:
app-distribution-daily:
runs-on: ubuntu-latest
if: github.repository == 'Orange-OpenSource/ods-android'
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up our JDK environment
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Set up signing configuration
uses: ./.github/actions/setup-signing
with:
keystore: ${{ secrets.SIGNING_KEYSTORE }}
store-password: ${{ secrets.SIGNING_STORE_PASSWORD }}
key-alias: ${{ secrets.SIGNING_KEY_ALIAS }}
key-password: ${{ secrets.SIGNING_KEY_PASSWORD }}
- name: Set up AppsPlus configuration
env:
APPS_PLUS_URL: ${{ secrets.APPS_PLUS_URL }}
APPS_PLUS_API_KEY: ${{ secrets.APPS_PLUS_API_KEY }}
run: |
echo APPS_PLUS_URL="$APPS_PLUS_URL" > $GITHUB_WORKSPACE/local.properties
echo APPS_PLUS_API_KEY="$APPS_PLUS_API_KEY" >> $GITHUB_WORKSPACE/local.properties
- name: Upload APK to Firebase App Distribution
uses: ./.github/actions/app-distribution
with:
append-git-sha-to-version-name: 'true'
git-tag-prefix: 'ci/daily-app'
group: 'ods-android-internal-tests'
github-token: ${{ secrets.GITHUB_TOKEN }}
firebase-token: ${{ secrets.FIREBASE_TOKEN }}