Skip to content

Commit ec40c49

Browse files
committed
Action to publish on new release
1 parent 98455db commit ec40c49

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/python-publish.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Upload Python Package
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/[email protected]
20+
with:
21+
python-version: "3.x"
22+
23+
- name: Install dependencies
24+
run: rye sync
25+
26+
- name: Build package
27+
run: rye build
28+
29+
- name: Publish package
30+
uses: rye publish --token "${{ secrets.PYPI_API_TOKEN }}" --yes

0 commit comments

Comments
 (0)