2020-03-01 00:09:41 +01:00
|
|
|
name: PyPI publish
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-07-23 19:11:34 +02:00
|
|
|
- uses: actions/setup-python@v2
|
2020-03-01 00:09:41 +01:00
|
|
|
with:
|
|
|
|
python-version: 3.x
|
2022-07-03 12:37:54 +02:00
|
|
|
- name: Install Build dependencies
|
2022-07-03 12:29:51 +02:00
|
|
|
run: pip install build
|
2020-03-01 00:09:41 +01:00
|
|
|
- name: Build
|
2022-07-03 12:29:51 +02:00
|
|
|
run: python -m build --sdist --wheel
|
2020-03-01 00:09:41 +01:00
|
|
|
- name: Publish to PyPI
|
|
|
|
uses: pypa/gh-action-pypi-publish@master
|
|
|
|
with:
|
|
|
|
user: __token__
|
|
|
|
password: ${{ secrets.pypi_password }}
|