File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ name: Build and publish to PyPI
22
33on :
44 push :
5- tags :
6- - " *"
5+ branches :
6+ - " chore/poetry2"
7+ # tags:
8+ # - "*"
79
810jobs :
911 build :
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
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
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/
You can’t perform that action at this time.
0 commit comments