Skip to content

improve create_app usage #86

improve create_app usage

improve create_app usage #86

name: 🌎 Update project translations
on:
push:
branches:
- master
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