2021-01-13 15:54:58 +00:00
|
|
|
name: Release to PyPI
|
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]+"
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-06-02 02:04:36 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-python@v3
|
2022-01-06 02:14:02 +00:00
|
|
|
- run: pip install -U pip && pip install -U setuptools build
|
|
|
|
- run: python -m build
|
2021-12-24 19:06:47 +00:00
|
|
|
- name: Publish
|
|
|
|
uses: pypa/gh-action-pypi-publish@v1.4.2
|
|
|
|
with:
|
|
|
|
user: __token__
|
|
|
|
password: ${{ secrets.PYPI_API_TOKEN }}
|