diff --git a/.github/workflows/crowdin_upload.yml b/.github/workflows/crowdin_upload.yml new file mode 100644 index 000000000..7010d5eef --- /dev/null +++ b/.github/workflows/crowdin_upload.yml @@ -0,0 +1,31 @@ +name: Crowdin Upload + +on: + push: + branches: [ "beta" ] + paths: + - 'app/src/main/res/values/strings.xml' + workflow_dispatch: + +jobs: + synchronize-with-crowdin: + name: Upload strings to Crowdin + if: github.repository_owner == 'DHD2280' + runs-on: ubuntu-latest + steps: + + - name: Checkout + uses: actions/checkout@v4 + + - name: Upload Strings + uses: crowdin/github-action@v1 + with: + upload_translations: false + upload_sources: true + download_translations: false + localization_branch_name: beta-localization + create_pull_request: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} + CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} \ No newline at end of file