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

30 lines
760 B
YAML
Raw Normal View History

2024-01-13 18:36:43 +00:00
name: release to pypi.org
2021-12-24 19:06:47 +00:00
"on":
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
2024-01-13 18:36:43 +00:00
workflow_dispatch:
jobs:
2022-11-02 23:35:41 +00:00
main:
runs-on: ubuntu-latest
steps:
2024-01-13 18:36:43 +00:00
- name: check out source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: set up Python
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
with:
python-version: '3.12'
2024-01-13 18:36:43 +00:00
- name: install dependencies
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@81e9d935c883d0b210363ab89cf05f3894778450
2021-12-24 19:06:47 +00:00
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
permissions:
contents: read