44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: Development Builder
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Build develop commit
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Clone repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Android SDK
|
|
run: |
|
|
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "build-tools;29.0.3"
|
|
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: 17
|
|
distribution: adopt
|
|
|
|
- name: Set up gradle
|
|
uses: gradle/actions/setup-gradle@v3
|
|
|
|
- name: Write google-services.json
|
|
uses: DamianReeves/write-file-action@v1.2
|
|
with:
|
|
path: app/google-services.json
|
|
contents: ${{ secrets.GOOGLE_SERVICES_TEXT }}
|
|
write-mode: overwrite
|
|
|
|
- name: Build app
|
|
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku' }}
|
|
run: ./gradlew assembleStandardRelease testStandardReleaseUnitTest --stacktrace
|