2021-09-26 17:56:40 +00:00
|
|
|
name: Publish packages
|
|
|
|
on:
|
2022-01-14 15:32:48 +00:00
|
|
|
release:
|
|
|
|
types: [published]
|
2021-09-26 17:56:40 +00:00
|
|
|
|
2024-09-06 14:48:43 +00:00
|
|
|
env:
|
2024-09-27 09:27:53 +00:00
|
|
|
UV_VERSION: 0.4.16
|
|
|
|
PYTHON_VERSION: 3.12
|
2024-09-06 14:48:43 +00:00
|
|
|
|
2021-09-26 17:56:40 +00:00
|
|
|
jobs:
|
|
|
|
build-n-publish:
|
|
|
|
name: Build release packages
|
|
|
|
runs-on: ubuntu-latest
|
2023-10-29 15:30:37 +00:00
|
|
|
permissions: # for trusted publishing
|
|
|
|
id-token: write
|
2021-09-26 17:56:40 +00:00
|
|
|
|
|
|
|
steps:
|
2024-09-27 09:27:53 +00:00
|
|
|
- name: Checkout source files
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Install uv
|
|
|
|
uses: astral-sh/setup-uv@v3
|
|
|
|
|
2021-09-26 17:56:40 +00:00
|
|
|
- name: Setup python
|
2023-10-29 15:30:37 +00:00
|
|
|
uses: actions/setup-python@v4
|
2021-09-26 17:56:40 +00:00
|
|
|
with:
|
2024-09-27 09:27:53 +00:00
|
|
|
python-version: ${{ env.PYTHON_VERSION }}
|
2021-09-26 17:56:40 +00:00
|
|
|
|
|
|
|
- name: Build a binary wheel and a source tarball
|
2024-09-06 14:48:43 +00:00
|
|
|
run: uv build
|
2024-09-27 09:27:53 +00:00
|
|
|
|
2021-09-26 17:56:40 +00:00
|
|
|
- name: Publish release on pypi
|
2023-10-29 15:30:37 +00:00
|
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|