This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
name: android-apk
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
debug-apk:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: https://github.com/actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '17'
|
||||
|
||||
- name: Set up Android SDK
|
||||
uses: https://github.com/android-actions/setup-android@v3
|
||||
|
||||
- name: Install Android packages
|
||||
run: |
|
||||
sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0"
|
||||
|
||||
- name: Set up Gradle
|
||||
uses: https://github.com/gradle/actions/setup-gradle@v4
|
||||
|
||||
- name: Build debug APK
|
||||
run: gradle --no-daemon :app:assembleDebug
|
||||
|
||||
- name: Upload debug APK
|
||||
uses: https://github.com/actions/upload-artifact@v4
|
||||
with:
|
||||
name: ntp-check-debug-apk
|
||||
path: app/build/outputs/apk/debug/*.apk
|
||||
Reference in New Issue
Block a user