Crowdin Upload Action #48
This file contains hidden or 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
| name: Crowdin Upload Action | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '25 13 * * *' # Runs daily at 13:25 UTC (08:25 Central) | |
| jobs: | |
| crowdin-upload: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Docs Repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: "yarn" | |
| cache-dependency-path: "**/yarn.lock" | |
| - name: Install Dependencies | |
| run: yarn --prefer-offline --frozen-lockfile | |
| - name: Generate CLI Docs | |
| run: yarn stellar-cli:build | |
| - name: (temp) Fix CLI links | |
| run: yarn stellar-cli:fix-links | |
| shell: bash | |
| - name: Write Translations | |
| run: yarn write-translations | |
| - name: Crowdin push | |
| uses: crowdin/github-action@v2 | |
| with: | |
| upload_sources: true | |
| upload_translations: false | |
| download_translations: false | |
| upload_sources_args: --delete-obsolete | |
| env: | |
| CROWDIN_PROJECT_ID: ${{ env.CROWDIN_PROJECT_ID }} | |
| CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |