Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add mobile Crowdin source push workflow

Manav Rathi2065ca326b17
diff --git a/.github/workflows/mobile-crowdin-push-sources.yml b/.github/workflows/mobile-crowdin-push-sources.yml
new file mode 100644
index 0000000000..0d948d9fea
--- /dev/null
+++ b/.github/workflows/mobile-crowdin-push-sources.yml
@@ -0,0 +1,57 @@
+name: "Push sources to Crowdin (mobile)"
+
+on:
+ push:
+ branches: [main]
+ paths:
+ - "mobile/apps/photos/lib/l10n/intl_en.arb"
+ - "mobile/apps/photos/crowdin.yml"
+ - "mobile/apps/auth/lib/l10n/arb/app_en.arb"
+ - "mobile/apps/auth/crowdin.yml"
+ - "mobile/apps/locker/lib/l10n/app_en.arb"
+ - "mobile/apps/locker/crowdin.yml"
+ - ".github/workflows/mobile-crowdin-push-sources.yml"
+
+concurrency:
+ group: ${{ github.workflow }}
+ cancel-in-progress: false
+
+permissions:
+ contents: read
+
+jobs:
+ push-sources-to-crowdin:
+ name: "Push ${{ matrix.app }} sources"
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ include:
+ - app: photos
+ base_path: "mobile/apps/photos/"
+ config: "mobile/apps/photos/crowdin.yml"
+ project_id: 574741
+ - app: auth
+ base_path: "mobile/apps/auth/"
+ config: "mobile/apps/auth/crowdin.yml"
+ project_id: 575169
+ - app: locker
+ base_path: "mobile/apps/locker/"
+ config: "mobile/apps/locker/crowdin.yml"
+ project_id: 860056
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v6
+
+ - name: Crowdin push
+ uses: crowdin/github-action@v2
+ with:
+ base_path: ${{ matrix.base_path }}
+ config: ${{ matrix.config }}
+ upload_sources: true
+ upload_translations: false
+ download_translations: false
+ project_id: ${{ matrix.project_id }}
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}