2021-07-29 03:14:29 +02:00
|
|
|
name: Crowdin translation upload
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-07-19 17:41:02 +02:00
|
|
|
branches: [main]
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
synchronize-with-crowdin:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-20 09:22:05 +02:00
|
|
|
uses: actions/checkout@v3
|
2021-07-29 03:14:29 +02:00
|
|
|
- name: Java
|
2023-07-19 17:41:02 +02:00
|
|
|
uses: actions/setup-java@v3
|
2021-07-29 03:14:29 +02:00
|
|
|
with:
|
|
|
|
distribution: "adopt"
|
|
|
|
java-version: "11"
|
2023-07-19 17:41:02 +02:00
|
|
|
- name: Make gradlew executable
|
2021-07-29 03:14:29 +02:00
|
|
|
run: "sudo chmod +x gradlew"
|
|
|
|
- name: Build i18n application
|
|
|
|
run: "./gradlew i18n:build"
|
|
|
|
- name: Generate translation source
|
|
|
|
run: "java -jar i18n/build/libs/i18n-all.jar"
|
|
|
|
- name: Upload translations to Crowdin
|
2023-07-19 17:41:02 +02:00
|
|
|
uses: crowdin/github-action@1.11.0
|
2021-07-29 03:14:29 +02:00
|
|
|
with:
|
|
|
|
upload_translations: true
|
|
|
|
download_translations: false
|
|
|
|
localization_branch_name: i18n
|
2021-12-24 00:21:14 +01:00
|
|
|
source: "source.yaml"
|
|
|
|
translation: "/%original_path%/src/main/resources/translations/%three_letters_code%.yaml"
|
2021-07-29 03:14:29 +02:00
|
|
|
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
|
|
|
|
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|