forked from sio2project/oioioi
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (50 loc) · 1.59 KB
/
translations-upload.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
# This is a Transifex translations integration file.
name: Transifex translations upload
env:
TX_TOKEN: ${{ secrets.TRANSIFEX_API_TOKEN }}
# This job should be only ran by hand.
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl libpq-dev libdb-dev gettext
sudo apt-get install -y fp-compiler fp-units-base fp-units-math
- name: Cache restore pip
id: cache-pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py', 'requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-${{ hashFiles('setup.py', 'requirements*.txt') }}
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
python setup.py install_egg_info
pip install --upgrade -r requirements.txt
- name: Install TX client
run: |
cd ..
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
- name: Update repository
run: |
../tx pull -af
git diff
- name: Make messages + push
run: |
cd oioioi
django-admin makemessages --all --no-obsolete --symlinks
django-admin makemessages --all --no-obsolete --symlinks -d djangojs
git diff
cd ..
../tx push --source