-
Notifications
You must be signed in to change notification settings - Fork 18
53 lines (50 loc) · 1.48 KB
/
update_translation_files.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Translation files CI update
on:
push:
branches:
- master
# Only run if something other than locales are updated.
# This is to prevent this workflow from running when Weblate commits new translations.
paths-ignore:
- 'docs/source/locales/**'
jobs:
regenerate_locales_docs:
runs-on: ubuntu-20.04
name: Update translation files
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/vircadia/video.git
pip install -U Sphinx==3.5.4
pip install --upgrade myst-parser
pip install sphinx_rtd_theme
pip install 'jinja2<3.1'
pip install 'myst-parser==0.16.0'
pip install attr
pip install attrs
pip install sphinx-intl
- name: Regenerate translation files
shell: bash
run: |
cd docs
make gettext
sphinx-intl update -l de
sphinx-intl update -l es
sphinx-intl update -l fr
sphinx-intl update -l jp
sphinx-intl update -l ko
shpinx-intl update -l zn_CH
shpinx-intl update -l ca
- name: Commit changes
uses: actions-x/commit@v2
with:
name: AnimatedMannequin
email: [email protected]
message: Automatically updated locales
files: docs/source/locales/**