github workflow: rework

This commit is contained in:
2025-03-29 21:23:35 +01:00
parent 889b4b9746
commit 1ff67985ec
3 changed files with 15 additions and 6 deletions

View File

@@ -34,7 +34,6 @@ jobs:
pip install --upgrade googletrans==3.1.0a0 pip install --upgrade googletrans==3.1.0a0
curl -o translate-md.py https://raw.githubusercontent.com/dbt1/translate-md/refs/heads/master/translate-md.py curl -o translate-md.py https://raw.githubusercontent.com/dbt1/translate-md/refs/heads/master/translate-md.py
chmod 755 translate-md.py chmod 755 translate-md.py
curl -o translate-md-config.json https://raw.githubusercontent.com/dbt1/translate-md/refs/heads/master/translate-md-config.json.sample
- name: Prepare Git user data - name: Prepare Git user data
run: | run: |
@@ -56,7 +55,7 @@ jobs:
- name: Commit and push translated README - name: Commit and push translated README
run: | run: |
git add README*.md git add README_de.md -f README_en.md
git commit -m "readme: Automatically translated README" git commit -m "readme: Automatically translated README"
- name: Install tagit dependencies - name: Install tagit dependencies
@@ -75,7 +74,7 @@ jobs:
- name: Tagging - name: Tagging
run: | run: |
python tagit.py -f README_de.md -f README_en.md -f README_es.md -f README_fr.md -f README_it.md --scheme-file tagit-config.json python tagit.py -f README_de.md -f README_en.md --scheme-file tagit-config.json
- name: Commit and push version and tag changes - name: Commit and push version and tag changes
run: | run: |

6
.gitignore vendored
View File

@@ -19,7 +19,7 @@ local build increment
poky-* poky-*
venv venv
tagit* tagit.py
translate* tagit-config.json
template* translate-md.py

10
translate-md-config.json Normal file
View File

@@ -0,0 +1,10 @@
{
"template_md": "template.md",
"output_dir": ".",
"prefix": "README_",
"main_doc": "README.md",
"target_languages": {
"de": ["German", "🇩🇪"],
"en": ["English", "🇬🇧"]
}
}