Prevent the app to reload when coming form background, by remembering… #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD | |
on: | |
# Push on main excluding tags | |
push: | |
branches: | |
- 'main' | |
tags-ignore: | |
- '*.*' | |
jobs: | |
build: | |
name: CI/CD | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 and gradle cache | |
id: java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'gradle' | |
- name: Run build | |
run: | | |
cd GenericApp | |
gradle build | |
- name: Upload APKs | |
if: success() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: apks | |
path: | | |
**/*.apk |