Skip to content

Commit

Permalink
Create android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GitAlasGo authored Dec 7, 2024
1 parent 915fdf1 commit bf47dce
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Android CI

on:
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- uses: actions/checkout@v4
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assembleDebug
- name: Grab app version
run: |
export VERSION=$(grep -H 'versionName' app/build.gradle | sed -r 's/[^0-9.].//g;s/"//g')
echo Current version is $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: upload binaries to release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{env.VERSION}}
files: app/build/outputs/apk/debug/app-debug.apk
name: LADB

0 comments on commit bf47dce

Please sign in to comment.