Skip to content

0.15

0.15 #9

Workflow file for this run

name: Release to PYPI
on:
release:
types: [created]
jobs:
release:
name: Release to PYPI
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install gettext
run: sudo apt-get install gettext
- name: Update setuptools pip and wheel
run: pip install -U setuptools pip wheel
- name: Install release requirements
run: pip install -r requirements-release.txt
- name: Build and release to PYPI
run: |
python scripts/messages.py compile
python -m build
unzip -l dist/*.whl
tar tzf dist/*.tar.gz
twine upload --non-interactive dist/*
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}