Skip to content

Commit 42080dc

Browse files
committed
Add release workflow
1 parent 603dd57 commit 42080dc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Release
3+
4+
"on":
5+
release:
6+
types:
7+
- published
8+
9+
jobs:
10+
pypi-publish:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
# https://docs.pypi.org/trusted-publishers/
14+
id-token: write
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Install poetry
19+
run: pipx install poetry
20+
21+
- run: poetry build
22+
23+
# https://docs.pypi.org/trusted-publishers/
24+
- name: Publish to PyPI
25+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)