first time #5
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 | |
on: | |
pull_request: | |
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 | |
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 | |
id: sign_app | |
uses: ilharp/[email protected] | |
with: | |
releaseDir: app/build/outputs | |
signingKey: ${{ secrets.SIGNING_KEYSTORE }} | |
keyAlias: ${{ secrets.SIGNING_KEYSTORE_ALIAS }} | |
keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }} | |
keyPassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }} | |
- name: Build Changelog | |
id: changelog | |
uses: ardalanamini/auto-changelog@v3 | |
with: | |
mention-authors: false | |
mention-new-contributors: false | |
include-compare: false | |
semver: false | |
- name: Create Release | |
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 }} |