File tree Expand file tree Collapse file tree 1 file changed +76
-0
lines changed Expand file tree Collapse file tree 1 file changed +76
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Update po/pot files
2
+
3
+ env :
4
+ # branch name of python-docs-ja repository
5
+ DOCS_BRANCH : " 3.10"
6
+ # branch name of cpython repository
7
+ CPYTHON_BRANCH : " 3.10"
8
+ # branch name of cpython-doc-catalog repository
9
+ CATALOG_BRANCH : " catalog-3.10"
10
+ # Transifex project name
11
+ TRANSIFEX_PROJECT : " python-newest"
12
+
13
+ on : workflow_dispatch
14
+ # schedule:
15
+ # - cron: "0 9 * * *"
16
+
17
+ jobs :
18
+
19
+ Org-Preparation :
20
+ runs-on : ubuntu-latest
21
+
22
+ steps :
23
+ - name : Check out python-docs-ja
24
+ uses : actions/checkout@v2
25
+
26
+ - name : Test checkout
27
+ run : |
28
+ pwd
29
+ echo ${GITHUB_WORKSPACE}
30
+
31
+
32
+ - name : Setup Python
33
+
34
+ with :
35
+ python-version : " 3.10"
36
+ architecture : " x64"
37
+
38
+ - name : Install packages
39
+ run : |
40
+ pip install --upgrade sphinx
41
+ pip install --upgrade sphinx-intl
42
+ pip install --upgrade blurb
43
+ pip install --upgrade transifex-client
44
+
45
+ - name : Setup tx
46
+ run : |
47
+ mv "${GITHUB_WORKSPACE}/.github/files/.transifexrc" ~/.transifexrc
48
+ cd ~
49
+ cat .transifexrc
50
+
51
+
52
+ Upload-Catalog :
53
+ runs-on : ubuntu-latest
54
+
55
+ steps :
56
+ - name : Check out cpython-doc-catalog
57
+ run : |
58
+ echo ${GITHUB_WORKSPACE}
59
+ cd "${GITHUB_WORKSPACE}"
60
+ git clone --branch main [email protected] :python-doc-ja/cpython-doc-catalog.git
61
+ mkdir -p "${GITHUB_WORKSPACE}"/cpython-doc-catalog/Doc/locales/ja
62
+ cd "${GITHUB_WORKSPACE}"/cpython-doc-catalog/Doc/locales/ja
63
+ ln -s "${GITHUB_WORKSPACE}"/python-docs-ja LC_MESSAGES
64
+ ls -lF LC_MESSAGES
65
+
66
+
67
+ Renew-Upload-Catalog :
68
+ runs-on : ubuntu-latest
69
+
70
+ steps :
71
+ - name : Check out the repo
72
+ uses : actions/checkout@v2
73
+
74
+
75
+
76
+
1
77
You can’t perform that action at this time.
0 commit comments