Use default change log for release #11
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 & Release | |
on: | |
workflow_dispatch: | |
# push: | |
# tags: | |
# - 'v*.*' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
JAVA_VERSION: '21' | |
ANDROID_API_LEVEL: 34 | |
ANDROID_BUILD_TOOLS_VERSION: 34.0.0 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Set up Android SDK | |
uses: android-actions/setup-android@v3 | |
- name: TEST | |
run: git tag -l | |
- name: TEST | |
run: git describe --tags --abbrev=0 | |
- name: Build app | |
run: ./gradlew assembleRelease | |
- name: Sign APK | |
id: sign_app | |
uses: ilharp/sign-android-release@nightly | |
with: | |
releaseDir: app/build/outputs/apk/release | |
signingKey: ${{ secrets.SIGNING_KEY }} | |
keyAlias: ${{ secrets.ALIAS }} | |
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | |
keyPassword: ${{ secrets.KEY_PASSWORD }} | |
buildToolsVersion: ${{ env.ANDROID_BUILD_TOOLS_VERSION }} | |
- name: Rename signed APK | |
run: | | |
mv "${{ steps.sign_app.outputs.signedFile }}" "app-release.apk" | |
- name: Create changelog | |
id: changelog | |
uses: requarks/changelog-action@v1 | |
with: | |
token: ${{ github.token }} | |
tag: ${{ github.ref_name }} | |
includeInvalidCommits: true | |
excludeTypes: build,chore | |
writeToFile: false | |
# - name: Create release | |
# uses: softprops/action-gh-release@v2 | |
# with: | |
# body: ${{ steps.changelog.outputs.changes }} | |
# files: "app-release.apk" | |
# fail_on_unmatched_files: true | |
# make_latest: true |