From 572f6b827e4af62edd3f811f988a4fd61fb37844 Mon Sep 17 00:00:00 2001 From: Pauliina Paasivirta Date: Mon, 11 Sep 2023 10:51:41 +0300 Subject: [PATCH] fix: include .qm file to release zip generated by workflow --- .github/workflows/release.yml | 45 ++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 924a326..0c8572d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,27 +3,31 @@ name: Release on: release: types: [released] + pull_request: + types: + - opened + - synchronize jobs: - pypi: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 - with: - python-version: "3.9" - - run: | - pip install build - - run: | - python -m build - - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} - - uses: svenstaro/upload-release-action@2.3.0 - with: - file: dist/* - file_glob: true + # pypi: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v3 + # - uses: actions/setup-python@v3 + # with: + # python-version: "3.9" + # - run: | + # pip install build + # - run: | + # python -m build + # - uses: pypa/gh-action-pypi-publish@release/v1 + # with: + # user: __token__ + # password: ${{ secrets.PYPI_API_TOKEN }} + # - uses: svenstaro/upload-release-action@2.3.0 + # with: + # file: dist/* + # file_glob: true qgis: runs-on: ubuntu-latest @@ -37,6 +41,9 @@ jobs: - run: | pip install -r requirements.txt --no-deps --only-binary=:all: pip install . --no-deps + # Generate .qm files from .ts files using lrelease + - run: | + lrelease src/quality_result_gui_plugin/resources/i18n/*.ts - run: | qgis-plugin-dev-tools build # no qgis repo publish yet for the dummy plugin gui