-
-
Notifications
You must be signed in to change notification settings - Fork 1
84 lines (63 loc) · 2.05 KB
/
bump-up.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Update po/pot files
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"
on: workflow_dispatch
# schedule:
# - cron: "0 9 * * *"
jobs:
Org-Preparation:
runs-on: ubuntu-latest
steps:
- name: Check out cpython-doc-catalog
uses: actions/chekout@v1
- name: Create directories
run: |
# Create messages directory
mkdir -p cpython-doc-catalog/Doc/locales/ja/
# test checkout
pwd
echo ${GITHUB_WORKSPACE}
- name: Test checkout
run: |
pwd
echo ${GITHUB_WORKSPACE}
- name: Setup Python
uses: actions/[email protected]
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
- name: Setup tx
run: |
mv "${GITHUB_WORKSPACE}/.github/files/.transifexrc" ~/.transifexrc
cd ~
cat .transifexrc
Upload-Catalog:
runs-on: ubuntu-latest
steps:
- name: Check out cpython-doc-catalog
run: |
echo ${GITHUB_WORKSPACE}
cd "${GITHUB_WORKSPACE}"
git clone --branch main [email protected]:python-doc-ja/cpython-doc-catalog.git
mkdir -p "${GITHUB_WORKSPACE}"/cpython-doc-catalog/Doc/locales/ja
cd "${GITHUB_WORKSPACE}"/cpython-doc-catalog/Doc/locales/ja
ln -s "${GITHUB_WORKSPACE}"/python-docs-ja LC_MESSAGES
ls -lF LC_MESSAGES
Renew-Upload-Catalog:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2