Build & Publish Release APK #9
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
name: Build & Publish Release APK | |
on: | |
push: | |
tags: | |
- 'Release*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Java JDK | |
uses: | |
actions/[email protected] | |
with: | |
java-version: 11 | |
distribution: 'adopt' | |
- name: Make Gradle related files executable where needed | |
run: chmod +x ./gradlew ./build.gradle.adapt.for.github.workflow.sh | |
- name: Adapt build.gradle to make only Unsigned release | |
run: ./build.gradle.adapt.for.github.workflow.sh | |
- name: Build Release APK | |
run: ./gradlew build | |
- name: Upload a Build Artifact for phone/table | |
uses: actions/[email protected] | |
with: | |
name: Squore.phone.apk | |
path: build/outputs/apk/phoneTabletPost23/release/Squore-phoneTabletPost23-release.apk | |
- name: Upload a Build Artifact for wearOs | |
uses: actions/[email protected] | |
with: | |
name: Squore.wearOs.apk | |
path: build/outputs/apk/wearOs/release/Squore-wearOs-release.apk | |
#- name: Releasing using Hub | |
# uses: sangatdesai/release-apk@main | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
# APP_FOLDER: app |