-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7214351
commit 18ce1bb
Showing
4 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
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 |
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
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
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