mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
Add Crowdin actions
This commit is contained in:
50
.github/workflows/crowdin_upload.yml
vendored
Normal file
50
.github/workflows/crowdin_upload.yml
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
name: crowdin upload
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
concurrency:
|
||||
group: crowdin-upload
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
upload:
|
||||
runs-on: ubuntu-latest
|
||||
environment: Crowdin
|
||||
name: upload
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up CPython 3.x
|
||||
uses: actions/setup-python@v2
|
||||
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 }}
|
Reference in New Issue
Block a user