mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-01-09 06:17:08 +00:00
30 lines
692 B
YAML
30 lines
692 B
YAML
name: Publish packages
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
env:
|
|
UV_VERSION: 0.4.5
|
|
|
|
jobs:
|
|
build-n-publish:
|
|
name: Build release packages
|
|
runs-on: ubuntu-latest
|
|
permissions: # for trusted publishing
|
|
id-token: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Setup python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.x"
|
|
|
|
- name: Install uv
|
|
run: |-
|
|
pipx install uv==${{ env.UV_VERSION }} --python "${{ steps.setup-python.outputs.python-path }}"
|
|
- name: Build a binary wheel and a source tarball
|
|
run: uv build
|
|
- name: Publish release on pypi
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|