-
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.
chore: update ci for firebase app distribution
- Loading branch information
1 parent
8157c3a
commit 7426319
Showing
1 changed file
with
13 additions
and
51 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 |
---|---|---|
@@ -1,57 +1,19 @@ | ||
name: '📢 and 📲' | ||
name: 🔥📲 Publish on Firebase Distribution | ||
|
||
on: | ||
pull_request: | ||
branches: ['main'] | ||
|
||
jobs: | ||
distribute: | ||
runs-on: ubuntu-latest | ||
environment: test | ||
steps: | ||
- uses: dyne/pnpm@main | ||
with: | ||
submodules: true | ||
node-version: '20.11.1' | ||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Setup java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: zulu | ||
java-version: '17' | ||
- name: Decode Keystore File | ||
uses: timheuer/base64-to-file@v1 | ||
id: android_keystore | ||
with: | ||
fileName: android_keystore.keystore | ||
encodedString: ${{ secrets.ANDROID_KEYSTORE_FILE }} | ||
- name: Decode Service Account File | ||
uses: timheuer/base64-to-file@v1 | ||
id: service_account | ||
with: | ||
fileName: play-store-credentials.json | ||
encodedString: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }} | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0' | ||
bundler-cache: true | ||
|
||
- uses: maierj/[email protected] | ||
env: | ||
KEYSTORE_PATH: ${{ steps.android_keystore.outputs.filePath }} | ||
SERVICE_ACCOUNT_PATH: ${{ steps.service_account.outputs.filePath }} | ||
KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }} | ||
KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }} | ||
KEYSTORE_STORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }} | ||
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }} | ||
PULL_REQUEST_NUMBER: ${{ github.event.number }} | ||
PULL_REQUEST_TITLE: ${{ github.event.pull_request.title }} | ||
PUBLIC_BACKEND_URL: ${{ vars.PUBLIC_BACKEND_URL }} | ||
with: | ||
lane: distribute | ||
uses: ForkbombEu/ship-capacitor-apps/.github/workflows/ship_android.yml@v1 | ||
with: | ||
backend-url: ${{ github.env.test.vars.PUBLIC_BACKEND_URL }} | ||
lane: distribute | ||
secrets: | ||
keystore-file: ${{ secrets.ANDROID_KEYSTORE_FILE }} | ||
service-account: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }} | ||
keystore-alias: ${{ secrets.KEYSTORE_KEY_ALIAS }} | ||
keystore-password: ${{ secrets.KEYSTORE_KEY_PASSWORD }} | ||
keystore-key-password: ${{ secrets.KEYSTORE_KEY_PASSWORD }} | ||
firebase-app-id: ${{ secrets.FIREBASE_APP_ID }} |