You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB

name: crowdin upload
on:
workflow_dispatch:
jobs:
upload:
runs-on: ubuntu-latest
environment: Crowdin
name: upload
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Set up CPython 3.x
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: 3.x
- name: Install system dependencies
run: |
wget -qO - https://artifacts.crowdin.com/repo/GPG-KEY-crowdin | sudo apt-key add -
echo "deb https://artifacts.crowdin.com/repo/deb/ /" | sudo tee -a /etc/apt/sources.list.d/crowdin.list
sudo apt-get update -qq
sudo apt-get install -y crowdin3
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -e .[docs,speed,voice]
- name: Build gettext
run: |
cd docs
make gettext
- name: Upload sources
shell: bash
run: |
cd docs
crowdin upload
env:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}