mirror of https://github.com/jab/bidict.git
30 lines
760 B
YAML
30 lines
760 B
YAML
name: release to pypi.org
|
|
|
|
"on":
|
|
push:
|
|
tags:
|
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
main:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: check out source
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
- name: set up Python
|
|
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
|
|
with:
|
|
python-version: '3.12'
|
|
- name: install dependencies
|
|
run: python -m pip install -U pip setuptools build
|
|
- run: python -m build
|
|
- name: Publish
|
|
uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf
|
|
with:
|
|
user: __token__
|
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
|
|
permissions:
|
|
contents: read
|