Skip to content

Commit

Permalink
Merge pull request #156 from geotribu/ci/fix-i18n-compilation
Browse files Browse the repository at this point in the history
ci: fix i18n compilation
  • Loading branch information
Guts authored Mar 13, 2024
2 parents c7ef57a + b689fcd commit cefbfd7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ name: "✅ Linter"

on:
push:
branches: [main]
branches:
- main
paths:
- "**.py"

pull_request:
branches: [main]
branches:
- main
paths:
- "**.py"

Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/packager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ env:

on:
push:
branches: [main]
branches:
- main
tags:
- "*"

pull_request:
branches: [main]
branches:
- main
paths:
- .github/workflows/packager.yml

Expand All @@ -24,13 +26,20 @@ jobs:
- name: Get source code
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "pip"

- name: Install system requirements
run: |
sudo apt update
sudo apt install qt5-qmake qttools5-dev-tools
python3 -m pip install -U pyqt5-tools
- name: Update translations
run: lupdate -noobsolete -verbose ${{ env.PROJECT_FOLDER }}/resources/i18n/plugin_translation.pro
run: pylupdate5 -noobsolete -verbose ${{ env.PROJECT_FOLDER }}/resources/i18n/plugin_translation.pro

- name: Compile translations
run: lrelease ${{ env.PROJECT_FOLDER }}/resources/i18n/*.ts
Expand Down

0 comments on commit cefbfd7

Please sign in to comment.