fix rect/verso + small project improvements #114
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🌎 Update project translations | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'project/**' | |
- '.github/workflows/project-translation.yml' | |
jobs: | |
build: | |
name: Update project translations | |
runs-on: ubuntu-latest | |
env: | |
TX_TOKEN: ${{ secrets.TX_TOKEN }} | |
COMPOSE_FILE: .docker/docker-compose.yml | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Transifex | |
run: | | |
curl -OL https://github.com/transifex/cli/releases/download/v1.6.5/tx-linux-amd64.tar.gz | |
tar -xvzf tx-linux-amd64.tar.gz | |
- name: Start Docker compose | |
run: | | |
docker compose --profile qgis up --build -d | |
docker compose exec signalo init_db.sh wait | |
- name: Translate | |
run: | | |
docker compose run qgis sh -c 'xvfb-run /usr/src/project/scripts/project-translation-create-source.py /usr/src/project/signalo.qgs' | |
- name: Push to TX | |
run: ./tx push --source |