mirror of
https://github.com/tuxbox-neutrino/buildenv.git
synced 2025-08-26 15:02:58 +02:00
github workflow: rework
This commit is contained in:
5
.github/workflows/translateandtag.yml
vendored
5
.github/workflows/translateandtag.yml
vendored
@@ -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
6
.gitignore
vendored
@@ -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
10
translate-md-config.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"template_md": "template.md",
|
||||||
|
"output_dir": ".",
|
||||||
|
"prefix": "README_",
|
||||||
|
"main_doc": "README.md",
|
||||||
|
"target_languages": {
|
||||||
|
"de": ["German", "🇩🇪"],
|
||||||
|
"en": ["English", "🇬🇧"]
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user