-
-
Notifications
You must be signed in to change notification settings - Fork 120
35 lines (26 loc) · 639 Bytes
/
publish.yml
File metadata and controls
35 lines (26 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
31
32
33
34
35
name: Upload Python Package
permissions:
contents: write
on:
workflow_dispatch:
push:
tags:
- 'v[0-9]\.[0-9]+\.[0-9]+'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: './.github/actions/setup-project'
- name: Prepare README
run: ./scripts/refactor_readme.py README.md
- name: Build package
run: uv build
- name: Publish package
run: |
uv publish --token ${{ secrets.PYPI_API_TOKEN }}
- name: Create release
uses: softprops/action-gh-release@v2
with:
draft: true
files: dist/*