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

23 lines
539 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:
build:
runs-on: ubuntu-latest
steps:
2021-12-24 19:06:47 +00:00
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Prepare Env
run: |
python -m pip install --upgrade pip
pip install setuptools build
- name: Build
run: python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}