Skip to content

Commit c4f8ba8

Browse files
committed
push gettext in pipeline
1 parent 7781848 commit c4f8ba8

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/docs.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,39 @@ on:
99
- 'v*.*.*'
1010

1111
jobs:
12-
test:
12+
gettext:
1313
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: [ '3.8' ]
17+
steps:
18+
- name: Checkout source code
19+
uses: actions/checkout@v1
20+
- name: Set up Python
21+
uses: actions/setup-python@v1
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: virtualenv cache
25+
uses: actions/cache@preview
26+
with:
27+
path: ~/.cache/pypoetry/virtualenvs
28+
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles(format('{0}{1}', github.workspace, '/poetry.lock')) }}
29+
restore-keys: |
30+
${{ runner.os }}-${{ matrix.python-version }}-poetry-
31+
- name: Install Python dependencies
32+
run: |
33+
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
34+
$HOME/.poetry/bin/poetry install
35+
- name: Upload pot to Transifex
36+
run: |
37+
$HOME/.poetry/bin/poetry run sphinx-intl create-transifexrc
38+
$HOME/.poetry/bin/poetry run make -C docs gettext push
39+
env:
40+
SPHINXINTL_TRANSIFEX_USERNAME: api
41+
SPHINXINTL_TRANSIFEX_PASSWORD: ${{ secrets.TRANSIFEX_TOKEN }}
42+
build:
43+
runs-on: ubuntu-latest
44+
needs: gettext
1445
strategy:
1546
matrix:
1647
python-version: [ '3.8' ]

docs/.tx/config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,9 @@ source_file = _build/gettext/tutorials/tutorial.pot
235235
source_lang = en
236236
type = PO
237237

238+
[gino_1_0.how-to--json-props]
239+
file_filter = locale/<lang>/LC_MESSAGES/how-to/json-props.po
240+
source_file = _build/gettext/how-to/json-props.pot
241+
source_lang = en
242+
type = PO
243+

0 commit comments

Comments
 (0)