-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 873 Bytes
/
release.yml
File metadata and controls
33 lines (27 loc) · 873 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
# Release a new version of the project to PyPI
# To trigger this workflow manually, run the following command:
# gh release create
name: Publish Release
on:
release:
types: [published]
jobs:
build-and-publish:
name: Build and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v2
with:
version: "latest"
enable-cache: true
- name: Sync Deps
run: uv sync
- name: Build
run: uv build
- name: Publish
run: uvx twine upload dist/*
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}