about summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-02-27 13:31:44 -0800
committerGitHub <noreply@github.com>2024-02-27 13:31:44 -0800
commit6717f8f11e69d12bcde3e5601ed02281b927c378 (patch)
tree3e9ca590def6458d22a754022a529b27ba0d819c /.github
parent2a04546c7305b9bf03ea6cd26ce728ed773e2673 (diff)
downloadvoidsky-6717f8f11e69d12bcde3e5601ed02281b927c378.tar.zst
Compile locale before build on CI, fix the google-services.json variable for android builds (#3001)
* compile intl before building, fix android json var

* update intl:build
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build-submit-android.yml6
-rw-r--r--.github/workflows/build-submit-ios.yml3
2 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/build-submit-android.yml b/.github/workflows/build-submit-android.yml
index 6fa177fb0..8cbd90984 100644
--- a/.github/workflows/build-submit-android.yml
+++ b/.github/workflows/build-submit-android.yml
@@ -49,10 +49,14 @@ jobs:
       - name: ⚙️ Install dependencies
         run: yarn install
 
+      - name: 🔤 Compile translations
+        run: yarn intl:build
+
       - name: ✏️ Write environment variables
         run: |
+          export json='${{ secrets.GOOGLE_SERVICES_TOKEN }}'
           echo "${{ secrets.ENV_TOKEN }}" > .env
-          echo "${{ secrets.GOOGLE_SERVICES_TOKEN }}" > google-services.json
+          echo "$json" > google-services.json
 
       - name: 🏗️ EAS Build
         run: yarn use-build-number eas build -p android --profile production --local --output build.aab --non-interactive
diff --git a/.github/workflows/build-submit-ios.yml b/.github/workflows/build-submit-ios.yml
index b67678064..f5188b4b4 100644
--- a/.github/workflows/build-submit-ios.yml
+++ b/.github/workflows/build-submit-ios.yml
@@ -60,6 +60,9 @@ jobs:
           # change unless the yarn version changes as well.
           key: ${{ runner.os }}-pods-${{ hashFiles('yarn.lock') }}
 
+      - name: 🔤 Compile translations
+        run: yarn intl:build
+
       - name: ✏️ Write environment variables
         run: |
           echo "${{ secrets.ENV_TOKEN }}" > .env