WIP #4
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: Release | |
on: | |
push: | |
tags: | |
- '[0-9]+.[0-9]+' | |
jobs: | |
release: | |
name: Publish on Google Play | |
runs-on: [ self-hosted, macOS ] | |
timeout-minutes: 45 | |
env: | |
BUILD_NUMBER: ${{ github.run_number }} | |
steps: | |
# Checkout - https://github.com/actions/checkout | |
- name: Checkout | |
uses: actions/[email protected] | |
# Setup Java - https://github.com/actions/setup-java | |
- name: Set up JDK 21 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Check JDK version | |
run: java -version | |
# Setup Android - https://github.com/android-actions/setup-android | |
- name: Setup Android SDK | |
uses: android-actions/[email protected] | |
# Decode Keystore | |
- name: Decode Keystore | |
env: | |
RELEASE_KEYSTORE_BASE64: ${{ secrets.RELEASE_KEYSTORE_BASE64 }} | |
run: | | |
echo "$RELEASE_KEYSTORE_BASE64" | base64 --decode > release.jks | |
# Build and deploy - https://github.com/gradle/gradle-build-action | |
- name: Build and Publish App on Google Play | |
uses: gradle/actions/[email protected] | |
env: | |
RELEASE_KEY_ALIAS: ${{ secrets.RELEASE_KEY_ALIAS }} | |
RELEASE_KEY_PASS: ${{ secrets.RELEASE_KEY_PASS }} | |
with: | |
gradle-version: wrapper | |
arguments: publishProdReleaseBundle --stacktrace | |
# Create GitHub release - https://github.com/softprops/action-gh-release | |
- name: GitHub Release | |
uses: softprops/[email protected] | |
with: | |
name: Twilight ${{ env.GITHUB_REF_NAME }} | |
# Set VERSION_INFORMATION | |
- run: echo "VERSION_INFORMATION=$(${{github.workspace}}/gradlew -q printVersionInformation)" >> $GITHUB_ENV | |
continue-on-error: true |