Skip to content

Commit 9db308e

Browse files
Update CI.yml
1 parent 6022916 commit 9db308e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/CI.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ jobs:
9494
runs-on: ubuntu-latest
9595
if: "startsWith(github.ref, 'refs/tags/')"
9696
needs: [test]
97+
98+
environment:
99+
name: pypi
100+
url: https://pypi.org/project/django-ltree-2
101+
102+
permissions:
103+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
97104
steps:
98105
- uses: actions/checkout@v4
99106
- name: Install Poetry
@@ -124,6 +131,6 @@ jobs:
124131
upload_url: ${{ github.event.release.upload_url }}
125132
asset_path: ./dist/*.whl
126133

127-
- name: Publish
128-
run: |
129-
poetry publish
134+
- name: Publish package distributions to PyPI
135+
uses: pypa/gh-action-pypi-publish@release/v1
136+

0 commit comments

Comments
 (0)