mirror of
https://github.com/wismna/DoNext.git
synced 2025-10-03 15:40:14 -04:00

Added DonextV2 module with Compose and Room Set up clean architecture Add DI with Hilt Setup initial database Display task lists on main activity
71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
name: Android CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
BUILD_DIR: donext/build/outputs/bundle/release
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
|
|
- name: Replace tokens in build.gradle
|
|
run: |
|
|
sed -i 's/#{\([^}]*\)}/${\1}/g' donext/build.gradle
|
|
|
|
- name: Cache Gradle
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.gradle/caches
|
|
~/.gradle/wrapper
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-gradle-
|
|
|
|
- name: Build AAB
|
|
run: ./gradlew bundleRelease
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: release-aab
|
|
path: ${{ env.BUILD_DIR }}/*release*.aab
|
|
|
|
deploy-google-play:
|
|
needs: build
|
|
if: github.event_name == 'workflow_dispatch'
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Download artifact
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: release-aab
|
|
path: release
|
|
|
|
- name: Deploy to Google Play (production)
|
|
uses: r0adkll/upload-google-play@v1
|
|
with:
|
|
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
|
|
packageName: com.wismna.geoffroy.donext
|
|
releaseFiles: release/app-release.aab
|
|
track: beta
|
|
metadataRootDirectory: fastlane/metadata/android
|
|
whatsNewDirectory: fastlane/metadata/android/en-US/changelogs
|
|
status: completed |