Create main.yml #1
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: Android CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setting JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: memberikan Perizinan gradlew | |
run: chmod +x gradlew | |
- name: Build debug Apk | |
run: bash ./gradlew assembleDebug --stacktrace | |
- name: Upload Ke dalam Artifact | |
uses: actions/[email protected] | |
with: | |
name: 4LayT3xt | |
path: ./app/build/outputs/apk/debug/app-debug.apk | |