diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 4bbb1bf..84a770b 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -22,14 +22,14 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools wheel twine + - name: msgfmt + uses: whtsky/msgfmt-action@20190305 + env: + WORKDIR: "locales" - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - msgfmt -o ./locales/en/LC_MESSAGES/error_text.mo ./locales/en/LC_MESSAGES/error_text.po - msgfmt -o ./locales/en/LC_MESSAGES/message_text.mo ./locales/en/LC_MESSAGES/message_text.po - msgfmt -o ./locales/de/LC_MESSAGES/error_text.mo ./locales/de/LC_MESSAGES/error_text.po - msgfmt -o ./locales/de/LC_MESSAGES/message_text.mo ./locales/de/LC_MESSAGES/message_text.po python setup.py sdist bdist_wheel twine upload dist/*