Release Build Signing #1
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 Signing | |
run-name: Release Build Signing | |
on: | |
push: | |
branches: | |
- 'release_management' | |
permissions: | |
contents: write | |
jobs: | |
release-signing-build: | |
name: Release Signing Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Decode Keystore | |
env: | |
ENCODED_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE_BASE64 }} | |
DECODED_KEYSTORE_PATH: ${{ secrets.RELEASE_KEYSTORE_PATH }} | |
run: | | |
echo $ENCODED_KEYSTORE > keystore_base64.txt | |
base64 -d keystore_base64.txt > $DECODED_KEYSTORE_PATH | |
- name: Sign and Build Release Bundle | |
env: | |
RELEASE_KEYSTORE_PATH: ${{ secrets.RELEASE_KEYSTORE_PATH }} | |
RELEASE_SIGNING_PASSWORD: ${{ secrets.RELEASE_SIGNING_PASSWORD }} | |
RELEASE_SIGNING_USERNAME: ${{ secrets.RELEASE_SIGNING_PASSWORD }} | |
RELEASE_SIGNING_ALIAS: ${{ secrets.RELEASE_SIGNING_ALIAS }} | |
run: | |
./gradlew assembleRelease | |
- name: Retrieve Version | |
run: | | |
echo "::set-output name=VERSION_NAME::$(${{github.workspace}}/gradlew -q versionname)" | |
id: android_version | |
- name: Get version | |
run: | | |
echo "version_name=${{steps.android_version.outputs.VERSION_NAME}}" >> $GITHUB_ENV | |
- name: Create Release on Github | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: v${{env.version_name}} | |
name: Release - ${{env.version_name}} | |
generate_release_notes: true | |
prerelease: true | |
files: app/build/outputs/bundle/kafka/app-release.apk |