Skip to content

Commit fd103a7

Browse files
add publish workflow
1 parent 8b324fb commit fd103a7

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: publish.yml
2+
on:
3+
push:
4+
tags:
5+
# publishes any tag starting with 'v' as in 'v.1.0'
6+
- v*
7+
8+
jobs:
9+
run:
10+
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
13+
permissions:
14+
id-token: write
15+
contents: read
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v5
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v6
21+
- name: Install Python 3.13
22+
run: uv python install 3.13
23+
- name: Build
24+
run: uv build
25+
# Need to add a test that verifies the builds
26+
- name: Publish
27+
run: uv publish

0 commit comments

Comments
 (0)