-
-
Notifications
You must be signed in to change notification settings - Fork 37
49 lines (39 loc) · 1.33 KB
/
update-docs.yml
File metadata and controls
49 lines (39 loc) · 1.33 KB
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
name: Update po/pot files
on: workflow_dispatch
# schedule:
# - cron: "0 9 * * *"
jobs:
Org-Preparation:
runs-on: ubuntu-latest
env:
# branch name of python-docs-ja repository
DOCS_BRANCH: "3.10"
# branch name of cpython repository
CPYTHON_BRANCH: "3.10"
# branch name of cpython-doc-catalog repository
CATALOG_BRANCH: "catalog-3.10"
# Transifex project name
TRANSIFEX_PROJECT: "python-newest"
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2.3.1
with:
python-version: "3.10"
architecture: "x64"
- name: Install packages
run: |
pip install --upgrade sphinx
pip install --upgrade sphinx-intl
pip install --upgrade blurb
pip install --upgrade transifex-client
- uses: actions/checkout@v2
- name: Run scripts
run: |
# make files rnnable
chmod +x "${GITHUB_WORKSPACE}/scripts/upload-catalog.sh"
chmod +x "${GITHUB_WORKSPACE}/scripts/renew-catalog-template.sh"
# run scrits
"${GITHUB_WORKSPACE}/scripts/upload-catalog.sh"
"${GITHUB_WORKSPACE}/scripts/renew-catalog-template.sh"