| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1 +1,43 @@ | |||
| 1 | + name: Sync po files | ||
| 1 | 2 | ||
| 3 | + on: | ||
| 4 | + schedule: | ||
| 5 | + - cron: "0 9 * * *" | ||
| 6 | + | ||
| 7 | + env: | ||
| 8 | + # branch name of python-docs-ja repository | ||
| 9 | + DOCS_BRANCH: "3.10" | ||
| 10 | + # branch name of cpython repository | ||
| 11 | + CPYTHON_BRANCH: "3.10" | ||
| 12 | + # branch name of cpython-doc-catalog repository | ||
| 13 | + CATALOG_BRANCH: "catalog-3.10" | ||
| 14 | + # Transifex project name | ||
| 15 | + TRANSIFEX_PROJECT: "python-newest" | ||
| 16 | + # Directory where repositories are cloned | ||
| 17 | + BASEDIR: "$(dirname ${TRAVIS_BUILD_DIR})" | ||
| 18 | + | ||
| 19 | + jobs: | ||
| 20 | + main: | ||
| 21 | + name: Sync po/pot fiels | ||
| 22 | + runs-on: ubuntu-latest | ||
| 23 | + steps: | ||
| 24 | + - name: Check out the repo | ||
| 25 | + - uses: actions/checkout@v2 | ||
| 26 | + | ||
| 27 | + - name: Setup Python | ||
| 28 | + - uses: actions/setup-python@v2.3.1 | ||
| 29 | + with: | ||
| 30 | + python-version: "3.10" | ||
| 31 | + architecture: "x64" | ||
| 32 | + | ||
| 33 | + - name: Install packages | ||
| 34 | + run: | | ||
| 35 | + pip install sphinx sphinx-intl blurb trasifex-client | ||
| 36 | + | ||
| 37 | + - name: Run scripts | ||
| 38 | + run: | | ||
| 39 | + bash ${TRAVIS_BUILD_DIR}/scripts/prepare-build_3.10 | ||
| 40 | + bash ${TRAVIS_BUILD_DIR}/scripts/upload-catalog | ||
| 41 | + bash ${TRAVIS_BUILD_DIR}/scripts/renew-catalog-template | ||
| 42 | + | ||
| 43 | + | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments