bump version to 2.3.1 #39
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: 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 | |
env: | |
DEMO_APP_KEYSTORE_PASSWORD: ${{ secrets.DEMO_APP_KEYSTORE_PASSWORD }} | |
APK_KEY_PASSWORD: ${{ secrets.APK_KEY_PASSWORD }} | |
run: ./gradlew :demoApp:composeApp:assembleRelease --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/release/composeApp-release.apk#demoApp.apk --clobber |