Skip to content

Commit

Permalink
add demo app action
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin-LL committed Mar 7, 2024
1 parent 3f00d58 commit 15d6f73
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release-demo-app-apk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release demo app APK
# add demo app APK to the latest release
on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Build APK
run: ./gradlew assembleDebug --stacktrace
- name: Get latest release
id: latest_release
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
excludes: prerelease, draft
- name: Upload APK
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.latest_release.outputs.release }} demoApp/composeApp/build/outputs/apk/debug/composeApp-debug.apk#demoApp.apk --clobber

0 comments on commit 15d6f73

Please sign in to comment.