Skip to content

Update README.md

Update README.md #143

Workflow file for this run

name: Android Build
on:
push:
branches: [ develop, master ]
# pull_request:
# branches: [ develop ]
jobs:
apk:
runs-on: ubuntu-latest
# android ๋””๋ ‰ํ† ๋ฆฌ ์—†์•ฐ์œผ๋กœ ์ธํ•œ ์ฃผ์„ ์ฒ˜๋ฆฌ
# env:
# working-directory: ./android
steps:
# Check Current Branches
- uses: actions/checkout@v2
# JDK ์„ค์ •
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
# Android SDK ์„ค์ •
# - name: SetUp Android SDK
# uses: android-actions/setup-android@v2
# Dependency ์— ๋ฒ„์ „ ๋ฐ ๋ฆด๋ฆฌ์ฆˆ ๋ฉ”์‹œ์ง€ ๊ฐ€์ ธ์˜ค๊ธฐ working-directory -> ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ํŠน์„ฑ์ƒ android ์—์„œ ๋นŒ๋“œํ•ด์•ผ ๋˜์„œ ์ถ”๊ฐ€ํ•จ
- name: Release Version
id: release
run: |
echo ::set-output name=code::$(grep versionCode buildSrc/src/main/java/Dependency.kt | awk '{print $5}')
echo ::set-output name=name::$(grep versionName buildSrc/src/main/java/Dependency.kt | awk '{print $5}')
# Tag ๋ช… "" ์ œ๊ฑฐํ•ด์„œ ๊ฐ€์ ธ์˜ค๊ธฐ
- name: Get Version Name
id: version_name
run: echo ::set-output name=val::${{steps.release.outputs.name}}
- name: Get Version Code
id: version_code
run: echo ::set-output name=val::${{steps.release.outputs.code}}
- name: Print version
run: echo "Version ${{steps.version_code.outputs.val}}_${{steps.version_name.outputs.val}}"
# gradlew ๊ถŒํ•œ ํš๋“
- name: Grant execute permission for gradlew
run: chmod +x gradlew
# working-directory: ${{ env.working-directory }}
# Android Build Debug: assembleDebug Release: assembleRelease
- name: Android Build
run: ./gradlew clean assembleDebug
# working-directory: ${{ env.working-directory }}
# Debg Upload Apk
- name: Debug Apk
uses: actions/upload-artifact@v2
with:
name: Generate Debug Apk
path: app/build/outputs/apk/debug/til_${{steps.version_code.outputs.val}}_${{steps.version_name.outputs.val}}-debug.apk