2021-01-13 15:54:58 +00:00
|
|
|
name: Release to PyPI
|
2022-10-29 23:34:13 +00:00
|
|
|
|
2021-12-24 19:06:47 +00:00
|
|
|
"on":
|
2021-01-13 15:54:58 +00:00
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
2022-10-29 23:34:13 +00:00
|
|
|
|
2021-01-13 15:54:58 +00:00
|
|
|
jobs:
|
2022-11-02 23:35:41 +00:00
|
|
|
main:
|
2021-01-13 15:54:58 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-12-24 15:14:52 +00:00
|
|
|
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
|
|
|
|
- uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912
|
2022-10-29 23:34:13 +00:00
|
|
|
with:
|
|
|
|
python-version: '3.11'
|
2022-10-23 12:38:52 +00:00
|
|
|
- run: python -m pip install -U pip setuptools build
|
2022-01-06 02:14:02 +00:00
|
|
|
- run: python -m build
|
2021-12-24 19:06:47 +00:00
|
|
|
- name: Publish
|
2022-12-24 15:14:52 +00:00
|
|
|
uses: pypa/gh-action-pypi-publish@c7f29f7adef1a245bd91520e94867e5c6eedddcc
|
2021-12-24 19:06:47 +00:00
|
|
|
with:
|
|
|
|
user: __token__
|
|
|
|
password: ${{ secrets.PYPI_API_TOKEN }}
|