2021-05-29 23:44:26 +03:00
|
|
|
name: Crowdin Upload
|
2021-05-29 05:48:04 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2022-07-02 01:05:37 +03:00
|
|
|
upload-sources:
|
2021-05-29 05:48:04 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-06-17 00:42:18 +03:00
|
|
|
- uses: actions/checkout@v3
|
2022-07-02 01:05:37 +03:00
|
|
|
- uses: ./.github/actions/setup
|
2022-06-17 00:42:18 +03:00
|
|
|
- run: yarn i18n:extract
|
2021-05-29 23:32:51 +03:00
|
|
|
|
2022-06-17 00:42:18 +03:00
|
|
|
- name: Upload Crowdin sources
|
2021-05-29 05:48:04 +03:00
|
|
|
uses: crowdin/github-action@1.1.0
|
|
|
|
with:
|
2021-05-29 06:06:15 +03:00
|
|
|
upload_sources: true
|
2021-05-29 23:44:26 +03:00
|
|
|
download_translations: false
|
2021-05-29 05:48:04 +03:00
|
|
|
project_id: 458284
|
2021-05-29 05:55:29 +03:00
|
|
|
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN_SECRET }}
|
2021-05-29 07:15:07 +03:00
|
|
|
source: 'src/locales/en-US.po'
|
2021-05-29 23:48:16 +03:00
|
|
|
translation: 'src/locales/%locale%.po'
|
2021-05-29 05:48:04 +03:00
|
|
|
env:
|
2021-05-29 06:07:15 +03:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|