Skip to content

Commit eb60837

Browse files
committed
update poetry
1 parent 7fce36c commit eb60837

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ name: Build and publish to PyPI
22

33
on:
44
push:
5-
tags:
6-
- "*"
5+
branches:
6+
- "chore/poetry2"
7+
# tags:
8+
# - "*"
79

810
jobs:
911
build:
@@ -19,7 +21,7 @@ jobs:
1921
python-version: "3.13"
2022

2123
- name: Install Poetry and pre-commit 💈
22-
run: pip install poetry==1.8.5 pre-commit
24+
run: pip install poetry==2.2.1 pre-commit
2325

2426
- name: Install dependencies 🛠
2527
run: poetry install
@@ -42,7 +44,7 @@ jobs:
4244
name: Publish
4345
needs: build
4446
runs-on: ubuntu-latest
45-
environment: PyPI
47+
environment: TestPyPI
4648
permissions:
4749
# this permission is mandatory for trusted publishing
4850
id-token: write
@@ -54,4 +56,7 @@ jobs:
5456
path: dist
5557

5658
- name: Publish package to PyPI 🙌
59+
# if: success() && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
5760
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e #v1.13.0
61+
with:
62+
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)