Skip to content

Switch to GitHub actions #2

Switch to GitHub actions

Switch to GitHub actions #2

Workflow file for this run

name: Translate
on: [push]
jobs:
update:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate template
run: |
git clone https://github.com/x64dbg/translations --branch translations
git clone --depth 1 https://github.com/x64dbg/x64dbg
cd x64dbg
mkdir bin/translations
git ls-files *.java *.jui *.ui *.c *.c++ *.cc *.cpp *.cxx *.ch *.h *.h++ *.hh *.hpp *.hxx *.js *.qs *.qml *.qrc > bin\translations\files.lst
..\lupdate.exe @bin\translations\files.lst -locations absolute -ts ..\translations\x64dbg.ts
- name: Crowdin sync
uses: crowdin/github-action@v2
with:
upload_sources: true
download_translations: true
- name: Check translations
run: TranslationChecker.exe translations --fix
- name: Generate Qt translations
run: .\generate.bat
- name: Push translations
run: |
cd translations
git status
- name: Upload Qt translations
uses: actions/upload-artifact@v4
with:
name: translations-qm
path: translations/*.qm
- name: Upload crowdin translations
uses: actions/upload-artifact@v4
with:
name: translations-ts
path: translations/*.ts