Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Update README.md

Update README.md #129

# Builds the project
name: Android Release CI
on:
push:
tags:
- '*'
jobs:
build:
name: Build, Sign & Release
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: set up JDK 17
uses: actions/[email protected]
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- uses: actions/[email protected]
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
run: ./gradlew clean && ./gradlew assembleRelease
- name: Sign APK
uses: ilharp/[email protected]
# ID used to access action output
id: sign_app
with:
releaseDir: app/build/outputs/apk/release
signingKey: ${{ secrets.SIGNINGKEY_BASE64 }}
keyAlias: ${{ secrets.KEY_ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
buildToolsVersion: 33.0.0
- name: Release to GitHub
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{steps.sign_app.outputs.signedFile}}
asset_name: mLauncher-${{ github.ref_name }}-Signed.apk
tag: ${{ github.ref }}
overwrite: true