43 lines
1023 B
YAML
43 lines
1023 B
YAML
name: Push Crowdin Translations
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 0 * * 1"
|
|
|
|
jobs:
|
|
update-crowdin:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install Qt ≥ 6.8
|
|
uses: jurplel/install-qt-action@v3
|
|
with:
|
|
aqtversion: "==3.1.*"
|
|
version: "6.8.3"
|
|
host: "linux"
|
|
target: "desktop"
|
|
arch: "linux_gcc_64"
|
|
|
|
- name: Setup Python & dependencies
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.x"
|
|
- name: Install Python packages
|
|
run: |
|
|
python3 -m pip install --upgrade pip
|
|
pip install pyside6
|
|
|
|
- name: Push translations to Crowdin
|
|
run: |
|
|
./updatecrowdin.py gather
|
|
./updatecrowdin.py upload
|
|
working-directory: ./src/Tools
|
|
env:
|
|
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }}
|
|
CROWDIN_PROJECT_ID: freecad
|