2023-11-01 20:58:31 +00:00
|
|
|
name: PyPI release
|
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:
|
2023-11-01 20:41:48 +00:00
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
|
|
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236
|
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
|
2023-12-01 19:23:53 +00:00
|
|
|
uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf
|
2021-12-24 19:06:47 +00:00
|
|
|
with:
|
|
|
|
user: __token__
|
|
|
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
2022-12-24 15:25:58 +00:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|