Skip to content

Instantly share code, notes, and snippets.

@natsumerinchan
Last active May 27, 2023 06:01
Show Gist options
  • Save natsumerinchan/5dd3faaaae83fc966bede0e5ca268d76 to your computer and use it in GitHub Desktop.
Save natsumerinchan/5dd3faaaae83fc966bede0e5ca268d76 to your computer and use it in GitHub Desktop.
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