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

23 lines
610 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:
2022-11-02 23:35:41 +00:00
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
- uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912
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@c7f29f7adef1a245bd91520e94867e5c6eedddcc
2021-12-24 19:06:47 +00:00
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}