Skip to content

Commit

Permalink
Feat: Develop build
Browse files Browse the repository at this point in the history
  • Loading branch information
titi0267 committed Feb 17, 2024
1 parent b5fdebb commit 55136f1
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build and Release App-bundle
on:
push:
branches:
- develop

jobs:
android-build:
name: Android main Build
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
- name: Checkout repo from main branch
uses: actions/[email protected]
with:
ref: main
- name: Install npm dependency
run: npm install
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: '17'
- name: Setup Android SDK
uses: android-actions/[email protected]
- uses: actions/[email protected]
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Decode Keystore
env:
KEYSTORE: ${{ secrets.KEYSTORE }}
MYAPP_UPLOAD_STORE_FILE: ${{ secrets.MYAPP_UPLOAD_STORE_FILE }}
run: |
cd android/app
echo $KEYSTORE > keystore-b64.txt
base64 -d keystore-b64.txt > $MYAPP_UPLOAD_STORE_FILE
- name: Build Release apk
env:
MYAPP_UPLOAD_STORE_FILE: ${{ secrets.MYAPP_UPLOAD_STORE_FILE }}
MYAPP_UPLOAD_KEY_ALIAS: ${{ secrets.MYAPP_UPLOAD_KEY_ALIAS }}
MYAPP_UPLOAD_KEY_PASSWORD: ${{ secrets.MYAPP_UPLOAD_KEY_PASSWORD }}
MYAPP_UPLOAD_STORE_PASSWORD: ${{ secrets.MYAPP_UPLOAD_STORE_PASSWORD }}
run: |
cd android
./gradlew assembleRelease
- name: Build Release bundle
env:
MYAPP_UPLOAD_STORE_FILE: ${{ secrets.MYAPP_UPLOAD_STORE_FILE }}
MYAPP_UPLOAD_KEY_ALIAS: ${{ secrets.MYAPP_UPLOAD_KEY_ALIAS }}
MYAPP_UPLOAD_KEY_PASSWORD: ${{ secrets.MYAPP_UPLOAD_KEY_PASSWORD }}
MYAPP_UPLOAD_STORE_PASSWORD: ${{ secrets.MYAPP_UPLOAD_STORE_PASSWORD }}
run: |
cd android
./gradlew bundleRelease

0 comments on commit 55136f1

Please sign in to comment.