Skip to content

Update README.md

Update README.md #2

Workflow file for this run

name: Build
on:
push:
branches:
- 'main'
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: kaisugi/[email protected]
id: regex-match
with:
text: ${{ github.event.head_commit.message }}
regex: '^v[0-9]+\.[0-9]+\.[0-9]+$'
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- name: Build App
run: |
bash ./gradlew assembleRelease
bash ./gradlew bundleRelease
- name: Move files
if: ${{ steps.regex-match.outputs.match != '' }}
run: |
mv app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/app-release.apk
mv app/build/outputs/bundle/release/app-release.aab app/build/outputs/app-release.aab
- name: Sign App
if: ${{ steps.regex-match.outputs.match != '' }}
id: sign_app
uses: ilharp/[email protected]
with:
releaseDir: app/build/outputs
signingKey: ${{ secrets.ANDROID_SIGNING_KEY }}
keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
- name: Build Changelog
if: ${{ steps.regex-match.outputs.match != '' }}
id: changelog
uses: ardalanamini/auto-changelog@v3
with:
mention-authors: false
mention-new-contributors: false
include-compare: false
semver: false
- name: Create Release
if: ${{ steps.regex-match.outputs.match != '' }}
id: create_release
uses: ncipollo/[email protected]
with:
artifacts: "app/build/outputs/app-release-signed.aab, app/build/outputs/app-release-signed.apk"
body: ${{ steps.changelog.outputs.changelog }}
tag: ${{ github.event.head_commit.message }}
name: Release ${{ github.event.head_commit.message }}
token: ${{ secrets.GITHUB_TOKEN }}