Merge pull request #313 from OpenNumismat/translations_a16b2f4aa3d848… #70
This file contains hidden or 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: "Build resources" | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'OpenNumismat/resources/i18n/lang_*.ts' | |
| - 'icons/*' | |
| - 'OpenNumismat/resources/resources.qrc' | |
| # pull_request: | |
| # branches: | |
| # - main | |
| # types: [closed] | |
| # paths: | |
| # - 'src/i18n/lang_*.ts' | |
| # - 'src/icons/*' | |
| # - 'src/resources.qrc' | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: true | |
| jobs: | |
| resources: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| persist-credentials: false | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install pyside6 | |
| - name: ts2qm | |
| run: | | |
| python misc/ts2qm.py | |
| - name: qrc2py | |
| run: | | |
| python misc/qrc2py.py | |
| - name: Commit & Push changes | |
| uses: actions-js/[email protected] | |
| with: | |
| github_token: ${{ secrets.PAT }} | |
| branch: master | |
| message: Updated resources |