| 1 |
name: Kazoo Awesome Release |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
tags: |
| 6 |
- '*' |
| 7 |
|
| 8 |
jobs: |
| 9 |
build-and-release: |
| 10 |
name: Build and release Kazoo to Pypi |
| 11 |
runs-on: ubuntu-latest |
| 12 |
steps: |
| 13 |
- name: Handle the code |
| 14 |
uses: actions/checkout@v4 |
| 15 |
|
| 16 |
- name: Set up Python 3.12 |
| 17 |
uses: actions/setup-python@v5 |
| 18 |
with: |
| 19 |
python-version: "3.12" |
| 20 |
|
| 21 |
- name: Install pypa/build |
| 22 |
run: >- |
| 23 |
python -m |
| 24 |
pip install |
| 25 |
build |
| 26 |
--user |
| 27 |
|
| 28 |
- name: Build a binary wheel and a source tarball |
| 29 |
run: >- |
| 30 |
python -m |
| 31 |
build |
| 32 |
-C--global-option=egg_info |
| 33 |
-C--global-option=--tag-build="" |
| 34 |
--sdist |
| 35 |
--wheel |
| 36 |
--outdir dist/ |
| 37 |
. |
| 38 |
|
| 39 |
- name: Publish Kazoo to PyPI |
| 40 |
if: startsWith(github.ref, 'refs/tags') |
| 41 |
uses: pypa/gh-action-pypi-publish@master |
| 42 |
with: |
| 43 |
password: ${{ secrets.PYPI_API_TOKEN }} |