Skip to content

0.0.5

0.0.5 #7

Workflow file for this run

# 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