Skip to content

Merge pull request #52 from Divinelink/feature/jellyseerr-integration #53

Merge pull request #52 from Divinelink/feature/jellyseerr-integration

Merge pull request #52 from Divinelink/feature/jellyseerr-integration #53

Workflow file for this run

name: Build Release App Bundle
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Decode Keystore
env:
ENCODED_STRING: ${{ secrets.STORE_FILE }}
run: |
TMP_KEYSTORE_FILE_PATH="${RUNNER_TEMP}"/keystore
mkdir "${TMP_KEYSTORE_FILE_PATH}"
echo $ENCODED_STRING | base64 -di > "${TMP_KEYSTORE_FILE_PATH}"/keystore.jks
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'adopt'
- name: Auth token to local.properties
env:
TMDB_AUTH_TOKEN: ${{ secrets.TMDB_AUTH_TOKEN }}
run: echo "TMDB_AUTH_TOKEN=${TMDB_AUTH_TOKEN}" >> local.properties
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build APK
run: ./gradlew app:assembleRelease
env:
SIGNING_KEY_ALIAS: ${{ secrets.STORE_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.STORE_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
TMDB_AUTH_TOKEN: ${{ secrets.TMDB_AUTH_TOKEN }}
- name: Upload
uses: actions/upload-artifact@v2
with:
name: Build Artifacts
path: app/build/outputs/
- name: Build & Deploy Release
run: ./gradlew appDistributionUploadRelease -PbundlePath=app/build/outputs/apk/release/app-release.apk
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}