2024-01-13 18:36:43 +00:00
|
|
|
name: release to pypi.org
|
2022-10-29 23:34:13 +00:00
|
|
|
|
2021-12-24 19:06:47 +00:00
|
|
|
"on":
|
2021-01-13 15:54:58 +00:00
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
2024-01-13 18:36:43 +00:00
|
|
|
workflow_dispatch:
|
2022-10-29 23:34:13 +00:00
|
|
|
|
2021-01-13 15:54:58 +00:00
|
|
|
jobs:
|
2022-11-02 23:35:41 +00:00
|
|
|
main:
|
2021-01-13 15:54:58 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-01-13 18:36:43 +00:00
|
|
|
- name: check out source
|
2024-07-02 12:14:33 +00:00
|
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
|
2024-01-13 18:36:43 +00:00
|
|
|
- name: set up Python
|
2024-04-02 12:24:32 +00:00
|
|
|
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
|
2022-10-29 23:34:13 +00:00
|
|
|
with:
|
2023-12-30 17:06:05 +00:00
|
|
|
python-version: '3.12'
|
2024-01-13 18:36:43 +00:00
|
|
|
- name: install dependencies
|
2024-06-27 02:19:01 +00:00
|
|
|
run: python -m pip install -U build
|
2022-01-06 02:14:02 +00:00
|
|
|
- run: python -m build
|
2021-12-24 19:06:47 +00:00
|
|
|
- name: Publish
|
2024-07-02 12:14:33 +00:00
|
|
|
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0
|
2021-12-24 19:06:47 +00:00
|
|
|
with:
|
|
|
|
user: __token__
|
|
|
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
2022-12-24 15:25:58 +00:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|