Skip to content

Commit 1d161a3

Browse files
committed
ci: Enable PyPI publishing for official repository builds.
1 parent abbf4ac commit 1d161a3

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jobs:
142142
runs-on: ubuntu-latest
143143
permissions:
144144
contents: write
145-
packages: write # Required for publishing to GitHub Packages
145+
id-token: write # Required for trusted publishing to PyPI
146146
steps:
147147
- uses: actions/checkout@v4
148148

@@ -159,7 +159,13 @@ jobs:
159159
generate_release_notes: true
160160
files: dist/*
161161

162-
- name: Publish to GitHub Packages
162+
# GitHub Packages does not currently support Python packages -- https://github.com/orgs/community/discussions/8542
163+
164+
# - name: Publish to GitHub Packages
165+
# uses: pypa/gh-action-pypi-publish@release/v1
166+
# with:
167+
# repository-url: https://pypi.pkg.github.com/fdcastel
168+
169+
- name: Publish to PyPI
170+
if: github.repository == 'FirebirdSQL/python3-driver'
163171
uses: pypa/gh-action-pypi-publish@release/v1
164-
with:
165-
repository-url: https://pypi.pkg.github.com/fdcastel

0 commit comments

Comments
 (0)