summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-05-09 16:54:51 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-05-09 17:15:36 +0900
commiteffedafabe722a0032f8d1c0b744b7a98be4e26c (patch)
treeb83cd0a21f764e3b80b22addc273842b3c2cd6ee
parent78dbe075a76c040703150efb67d0886efd885d2a (diff)
downloadsphinx-git-effedafabe722a0032f8d1c0b744b7a98be4e26c.tar.gz
i18n: Push translations via GitHub Actions automatically
-rw-r--r--.github/workflows/transifex.yml25
-rw-r--r--utils/release-checklist3
2 files changed, 26 insertions, 2 deletions
diff --git a/.github/workflows/transifex.yml b/.github/workflows/transifex.yml
new file mode 100644
index 000000000..7fe54ff9a
--- /dev/null
+++ b/.github/workflows/transifex.yml
@@ -0,0 +1,25 @@
+name: Push translations to transifex.com
+
+on:
+ schedule:
+ - cron: "0 0 * * SUN"
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ ref: 4.x
+ - name: Set up Python
+ uses: actions/setup-python@v2
+ - name: Install dependencies
+ run: pip install -U babel jinja2 transifex-client
+ - name: Extract translations from source code
+ run: python setup.py extract_messages
+ - name: Push translations to transifex.com
+ run: cd sphinx/locale && tx push -s --no-interactive --parallel
+ env:
+ TX_TOKEN: ${{ secrets.TX_TOKEN }}
diff --git a/utils/release-checklist b/utils/release-checklist
index 477ddcbbe..e8b44727e 100644
--- a/utils/release-checklist
+++ b/utils/release-checklist
@@ -30,8 +30,6 @@ for first beta releases
* open "https://github.com/sphinx-doc/sphinx/actions?query=branch:master" and all tests has passed
* Run ``git fetch; git status`` and check nothing changed
-* Run ``python setup.py extract_messages``
-* Run ``(cd sphinx/locale; tx push -s)``
* ``python utils/bump_version.py X.Y.0b1``
* Check diff by ``git diff``
* ``git commit -am 'Bump to X.Y.0 beta1'``
@@ -83,6 +81,7 @@ for major releases
* open "https://github.com/sphinx-doc/sphinx/actions?query=branch:X.x" and all tests has passed
* Run ``git fetch; git status`` and check nothing changed
+* Run ``python setup.py extract_messages``
* Run ``(cd sphinx/locale; tx pull -a -f)``
* Run ``python setup.py compile_catalog``
* Run ``git add sphinx``