Skip to content

Commit 94b96af

Browse files
Create Publish Workflow Action for publish to PyPI
1 parent 9526433 commit 94b96af

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish:
11+
name: Publish to PyPI
12+
runs-on: ubuntu-latest
13+
environment: release
14+
permissions:
15+
id-token: write
16+
contents: read
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v2
23+
24+
- name: Set up Python
25+
run: uv python install 3.10
26+
27+
- name: Build package
28+
run: uv build
29+
30+
- name: Publish to PyPI
31+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)