Skip to content

Commit

Permalink
CI - Add Transifex script
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Jun 20, 2024
1 parent a215692 commit 08b2afe
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/transifex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Transifex 🗺

on:
push:
branches:
- master
paths:
- '**.py'
- '**.ui'

jobs:
build:
runs-on: ubuntu-latest
if: github.repository_owner == '3liz'
steps:

- uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
cache-dependency-path: "requirements/packaging.txt"

- name: Install Python requirements
run: pip install -r requirements/packaging.txt

- name: Push to Transifex
run: qgis-plugin-ci push-translation ${{ secrets.TRANSIFEX_TOKEN }}
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ suppress-dummy-args = true
plugin_path = "dynamic_layers"
github_organization_slug = "3liz"
project_slug = "QgisDynamicLayersPlugin"
transifex_organization = "3liz-1"
transifex_project = "dynamiclayers"
transifex_resource = "qgis_plugin"
transifex_coordinator = "etrimaille"
1 change: 1 addition & 0 deletions requirements/packaging.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
qgis-plugin-ci>=2.7.0

0 comments on commit 08b2afe

Please sign in to comment.