Skip to content

Commit

Permalink
CI integration
Browse files Browse the repository at this point in the history
  • Loading branch information
kid1412621 committed Apr 24, 2024
1 parent 7a65753 commit 21ac79a
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
environment: production
runs-on: ubuntu-latest
steps:
# set up env
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Generate keystore.properties
Expand All @@ -32,12 +32,21 @@ jobs:
run: echo "${{ secrets.KEYSTORE_JKS_BASE64 }}" | base64 --decode > keystore.jks
- name: Generate google-services.json
run: echo "${{ secrets.GOOGLE_SERVICES_BASE64 }}" | base64 --decode > app/google-services.json
- name: Build with Gradle
run: ./gradlew bundleRelease --no-daemon

# APK for Github Release
- name: Build release APK
run: ./gradlew assembleRelease --no-daemon
- name: Release APK
uses: softprops/action-gh-release@v2
with:
files: app/build/outputs/apk/release/app-release.apk

# AAB for Google Play
- name: Build Release AAB
run: ./gradlew bundleRelease --no-daemon
- name: Upload AAB
uses: actions/upload-artifact@v4
with:
name: subspace
path: app/build/outputs/bundle/release/app-release.aab

0 comments on commit 21ac79a

Please sign in to comment.