[skip ci] Build devPreview on develop branch with CI on this repo instead of dispatch
This commit is contained in:
parent
b3dcf85dc6
commit
4c063cf1ea
2 changed files with 16 additions and 17 deletions
31
.github/workflows/build_check.yml
vendored
31
.github/workflows/build_check.yml
vendored
|
|
@ -1,13 +1,20 @@
|
|||
name: CI
|
||||
on: [pull_request]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
# Dispatch or Manual triggers
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
check_wrapper:
|
||||
name: Validate Gradle Wrapper
|
||||
build:
|
||||
name: Build app
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
|
@ -15,19 +22,10 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
|
||||
- name: Validate Gradle Wrapper
|
||||
uses: gradle/wrapper-validation-action@v1
|
||||
|
||||
build:
|
||||
name: Build app
|
||||
needs: check_wrapper
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v4
|
||||
uses: gradle/actions/wrapper-validation@v3
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v3
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: adopt
|
||||
|
|
@ -36,10 +34,11 @@ jobs:
|
|||
uses: gradle/actions/setup-gradle@v3
|
||||
|
||||
- name: Build app
|
||||
run: ./gradlew assembleDevDebug
|
||||
run: ./gradlew assembleDevPreview testDevPreviewUnitTest --stacktrace
|
||||
|
||||
- name: Upload APK
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Komikku-${{ github.sha }}.apk
|
||||
path: app/build/outputs/apk/dev/debug/app-dev-debug.apk
|
||||
path: app/build/outputs/apk/dev/preview/app-dev-universal-preview.apk
|
||||
retention-days: 1
|
||||
|
|
|
|||
2
.github/workflows/build_push_preview.yml
vendored
2
.github/workflows/build_push_preview.yml
vendored
|
|
@ -7,7 +7,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
# - develop
|
||||
paths:
|
||||
- '**'
|
||||
- '!**.md'
|
||||
|
|
|
|||
Loading…
Reference in a new issue