2021-01-13 15:54:58 +00:00
|
|
|
name: Release to PyPI
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
2021-10-21 22:08:25 +00:00
|
|
|
python-version: "3.10"
|
2021-01-13 15:54:58 +00:00
|
|
|
- name: Prepare Env
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
2021-10-21 22:08:25 +00:00
|
|
|
pip install setuptools build
|
2021-01-13 15:54:58 +00:00
|
|
|
- name: Build
|
2021-10-21 22:08:25 +00:00
|
|
|
run: python -m build
|
2021-01-13 15:54:58 +00:00
|
|
|
- name: Publish
|
2021-11-04 21:38:41 +00:00
|
|
|
uses: pypa/gh-action-pypi-publish@v1.4.2
|
2021-01-13 15:54:58 +00:00
|
|
|
with:
|
|
|
|
user: __token__
|
|
|
|
password: ${{ secrets.PYPI_API_TOKEN }}
|