Skip to content

Refactor and fix versions #88

Refactor and fix versions

Refactor and fix versions #88

Workflow file for this run

name: Build the latest beta APK
env:
# The name of the main module repository
main_project_module: app
app_name: SimpMusic
apk_file_name: SimpMusic
on:
workflow_dispatch:
push:
branches: ["main"]
paths-ignore:
- "README.md"
- ".github/**/*.md"
- ".github/ISSUE_TEMPLATE/**"
pull_request:
branches: ["main"]
paths-ignore:
- "README.md"
- ".github/**/*.md"
- ".github/ISSUE_TEMPLATE/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Up JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21"
cache: "gradle"
- name: Change wrapper permissions
run: chmod +x ./gradlew
# Create APK Release
- name: Build apk release project (APK) - ${{ env.main_project_module }} module
run: ./gradlew assemble
- uses: filippoLeporati93/android-release-signer@v1
name: Sign app APK
# ID used to access action output
id: sign_app
with:
releaseDirectory: ${{ env.main_project_module }}/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
# override default build-tools version (33.0.0) -- optional
BUILD_TOOLS_VERSION: "35.0.0"
- name: Rename APK file
run: sudo mv ${{steps.sign_app.outputs.signedReleaseFile}} /${{env.apk_file_name}}.apk
- name: Upload APK Release
uses: actions/upload-artifact@v4
with:
name: release-build
path: /${{env.apk_file_name}}.apk
overwrite: true
if-no-files-found: error