forked from python/python-docs-pt-br
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1018 Bytes
/
compendium.yml
File metadata and controls
39 lines (37 loc) · 1018 Bytes
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
name: Generate compendium
on:
workflow_dispatch:
workflow_call:
push:
paths:
- '.github/workflows/compendium.yml'
- '*.po'
- '**/*.po'
jobs:
compendium:
runs-on: ubuntu-latest
steps:
- name: Check out ${{ github.repository }}
uses: actions/checkout@v2
with:
persist-credentials: false
- if: github.event_name == 'workflow_call'
run: |
git pull --rebase
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
sudo apt update -y && sudo apt install gettext -y
pip3 install --upgrade pip
pip3 install translate-toolkit
- name: Generate compendium from PO files
run: |
pocompendium --correct compendium.po *.po **/*.po
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: compendium
path: compendium.po