| 1 |
name: Build wheels |
| 2 |
on: |
| 3 |
push: |
| 4 |
tags: |
| 5 |
- "[0-9]+.[0-9]+.[0-9]+" |
| 6 |
- "[0-9]+.[0-9]+.[0-9]+-**" |
| 7 |
|
| 8 |
jobs: |
| 9 |
build: |
| 10 |
runs-on: ubuntu-latest |
| 11 |
steps: |
| 12 |
- uses: actions/checkout@v4 |
| 13 |
|
| 14 |
- uses: actions/setup-python@v5 |
| 15 |
with: |
| 16 |
python-version: "3.12" |
| 17 |
|
| 18 |
- name: Install build tools |
| 19 |
run: | |
| 20 |
python -m pip install -U pip |
| 21 |
pip install setuptools build |
| 22 |
|
| 23 |
- name: Build sdist and wheel |
| 24 |
run: | |
| 25 |
python -m build . |
| 26 |
|
| 27 |
- uses: actions/upload-artifact@v4 |
| 28 |
with: |
| 29 |
name: package |
| 30 |
path: dist/flask_peewee* |
| 31 |
|
| 32 |
publish: |
| 33 |
needs: [build] |
| 34 |
runs-on: ubuntu-latest |
| 35 |
steps: |
| 36 |
- uses: actions/download-artifact@v4 |
| 37 |
with: |
| 38 |
name: package |
| 39 |
path: dist |
| 40 |
merge-multiple: true |
| 41 |
|
| 42 |
- uses: pypa/gh-action-pypi-publish@release/v1 |
| 43 |
with: |
| 44 |
user: __token__ |
| 45 |
password: ${{ secrets.PYPI_API_TOKEN }} |