-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
๐ Firebase Distribution | CI/CD ๊ตฌ์ถ (#15)
* Create versioning-and-deployment.yml * Update versioning-and-deployment.yml * ๐ ๏ธ CI/CD | signingConfig Setting * ๐ ๏ธ CI/CD | Add Properties * ๐ ๏ธ CI/CD | Modify OutputFileName * ๐ ๏ธ CI/CD | Modify OutputFileName * ๐ ๏ธ CI/CD | Modify OutputFile Path * ๐ ๏ธ CI/CD | Modify OutputFile Path * Squashed commit of the following: commit 7b7bbd7 Author: GyeongminKimGyeongminKim <151486569+GyeongminKimGyeongminKim@users.noreply.github.com> Date: Wed Sep 4 12:24:39 2024 +0900 ๐ ๊ธฐํ, ๋์์ธ ์์ ์ฌํญ ๋ฐ์ (#14) * ๐จ๊ณต์ง ์์ดํ ์ฆ๊ฒจ์ฐพ๊ธฐ ์์น ์์ * ๐จ๋์ ๊ณต์ง ๋ฒํผ ์ญ์ * ๐จ์ฆ๊ฒจ์ฐพ๊ธฐ ํ ์คํธ ๋ฉ์์ง ๋ผ์ดํ ์์ * ๐จ์ฆ๊ฒจ์ฐพ๊ธฐ ํ ์คํธ ๋ฉ์์ง ๋ผ์ดํ ์์ * ๐จ๋ก๊ณ ํด๋ฆญ ์ ํ ํ๋ฉด ์ด๋ ๊ตฌํ * ๐ ๏ธ CI/CD | Modify Trigger to Develop
- Loading branch information
Showing
3 changed files
with
87 additions
and
6 deletions.
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,53 @@ | ||
name: Versioning, Build And Deployment to Firebase App Distribution | ||
on: | ||
push: | ||
branches: [ develop ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
LOCAL_PROPERTIES_CONTENTS: ${{ secrets.LOCAL_PROPERTIES_CONTENTS }} | ||
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} | ||
VERSION_CODE: ${{ github.run_number }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '17' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x ./ThinkerBell/gradlew | ||
|
||
- name: Create google-services.json | ||
run: echo "$GOOGLE_SERVICES_JSON" > ./ThinkerBell/presentation/google-services.json | ||
|
||
- name: Create local.properties | ||
run: echo "$LOCAL_PROPERTIES_CONTENTS" > ./ThinkerBell/local.properties | ||
|
||
- name: Decode and save keystore | ||
run: echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > ./ThinkerBell/presentation/keystore.jks | ||
|
||
- name: Verify keystore | ||
run: | | ||
ls -alh ./ThinkerBell/presentation/ | ||
echo "Checking JKS format..." | ||
keytool -list -v -keystore ./ThinkerBell/presentation/keystore.jks -storetype JKS || echo "JKS format verification failed" | ||
- name: Build release APK | ||
run: | | ||
cd ./ThinkerBell | ||
./gradlew assembleRelease -PversionCode=$VERSION_CODE | ||
- name: Upload to Firebase App Distribution | ||
uses: wzieba/Firebase-Distribution-Github-Action@v1 | ||
with: | ||
appId: ${{ secrets.FIREBASE_APP_ID }} | ||
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }} | ||
groups: Team-NeverLand | ||
file: ./ThinkerBell/presentation/build/outputs/apk/release/thinkerbell-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