Skip to content

Commit f5211f1

Browse files
authored
Created publish action
1 parent f766856 commit f5211f1

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "Publish"
2+
3+
on:
4+
push:
5+
tags:
6+
- "[0-9]+.[0-9]+.[0-9]+"
7+
- "[0-9]+.[0-9]+.[0-9]+-[a-zA-Z0-9]+.[0-9]+"
8+
jobs:
9+
run:
10+
name: "Build and publish release"
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v3
18+
with:
19+
enable-cache: true
20+
cache-dependency-glob: uv.lock
21+
22+
- name: Set up Python
23+
run: uv python install 3.12 # Or whatever version I want to use.
24+
25+
- name: Build
26+
run: uv build
27+
28+
- name: Publish
29+
run: uv publish -t ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)