0.0.2 #4
Workflow file for this run
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
# This workflow will build and publish an APK to the latest release | |
# See https://github.com/docker/build-push-action | |
name: Publish APK | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish_to_release: | |
name: Publish APK | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set version variable | |
id: vars | |
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Build APK with Gradle | |
run: ./gradlew assembleRelease | |
- name: Upload APK | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: app/build/outputs/apk/release/app-release.apk | |
asset_name: TaskerHealthConnect-${{ steps.vars.outputs.tag }}.apk |