Skip to content

Commit 8f7abde

Browse files
authored
Added release pipeline (#63)
* Added release pipeline (but for test-pypi) * Re-targeted to production
1 parent e019584 commit 8f7abde

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#
2+
# Workflow to publish the package to PyPi on a tag.
3+
#
4+
5+
name: Publish to PyPi
6+
7+
on:
8+
push:
9+
tags: [ 'v*']
10+
11+
jobs:
12+
13+
deploy:
14+
15+
runs-on: ubuntu-latest
16+
17+
environment:
18+
name: pypi
19+
20+
permissions:
21+
id-token: write
22+
23+
steps:
24+
- uses: actions/checkout@v6
25+
26+
- uses: actions/setup-python@v6
27+
with:
28+
python-version: "3.13"
29+
30+
- uses: abatilo/actions-poetry@v4
31+
with:
32+
poetry-version: "2.3.1"
33+
- run: poetry build
34+
35+
# PyPi authentication is done through a trusted publisher and a Github environment:
36+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)