bidict/.github/workflows/release-to-pypi.yml

23 lines
505 B
YAML
Raw Normal View History

name: Release to PyPI
2021-12-24 19:06:47 +00:00
"on":
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
_:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
- uses: actions/setup-python@v4.3.0
with:
python-version: '3.11'
- run: python -m pip install -U pip setuptools build
- run: python -m build
2021-12-24 19:06:47 +00:00
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.5.1
2021-12-24 19:06:47 +00:00
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}