Skip to content

Commit

Permalink
chore(project): add actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Skythrew committed Aug 13, 2024
1 parent b97cb8a commit 6c22495
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Release

run-name: Building release bundle

on:
push:
tags:
- '*'

jobs:
build:
name: Generate App Bundle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- run: chmod +x gradlew
- name: Bundle 'release' with Gradle
run: ./gradlew bundleRelease

- name: Assemble 'release' with Gradle
run: ./gradlew assembleRelease

- name: Sign AAB
id: sign_aab
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/bundle/release
signingKeyBase64: ${{ secrets.SIGNING_KEYSTORE }}
alias: ${{ secrets.SIGNING_ALIAS }}
keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.SIGNING_ALIAS_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "34.0.0"

- name: Sign APK
id: sign_apk
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEYSTORE }}
alias: ${{ secrets.SIGNING_ALIAS }}
keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.SIGNING_ALIAS_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "34.0.0"

- run: echo "Build status report=${{ job.status }}."

- name: Upload App Bundle
uses: actions/upload-artifact@v4
with:
name: aab
path: ${{steps.sign_aab.outputs.signedReleaseFile}}

- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: apk
path: ${{steps.sign_apk.outputs.signedReleaseFile}}

0 comments on commit 6c22495

Please sign in to comment.