-
-
Notifications
You must be signed in to change notification settings - Fork 15
30 lines (28 loc) · 639 Bytes
/
Copy pathrelease.yml
File metadata and controls
30 lines (28 loc) · 639 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
name: Publish release
on:
release:
types:
- "released"
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
name: Release to PyPi
steps:
- id: git-checkout
name: Checkout
uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v7
- id: build-and-publish
name: Build and publish to pypi
env:
UV_PUBLISH_USERNAME: __token__
UV_PUBLISH_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
uv build
uv publish