Skip to content

Commit 155b03b

Browse files
authored
Create publish.yml
automatic pypi publishing of releases
1 parent bfbd342 commit 155b03b

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
pypi-publish:
9+
name: Build and publish to PyPI
10+
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write # Mandatory for Trusted Publishing
13+
contents: read
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.10"
20+
- name: Install Poetry
21+
run: pip install poetry
22+
- name: Build package
23+
run: poetry build
24+
- name: Publish package
25+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)