-
Notifications
You must be signed in to change notification settings - Fork 7
31 lines (31 loc) · 938 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 }}