Last active
May 27, 2023 06:01
-
-
Save natsumerinchan/5dd3faaaae83fc966bede0e5ca268d76 to your computer and use it in GitHub Desktop.
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: Apk Build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
gradle-home-cache-cleanup: true | |
- name: Build with Gradle | |
run: | | |
chmod +x gradlew | |
./gradlew clean assembleDebug | |
- name: Upload debug artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: MRepo | |
path: app/build/outputs/apk/debug/*.apk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment