-
Notifications
You must be signed in to change notification settings - Fork 27
ci: use PYPI_TOKEN for publishing and fix infinite generate loop #160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
5822e5e
fd1543f
6f0ee09
2424c27
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚩 Removal of GitHub environment protection for PyPI publishing Both Was this helpful? React with 👍 or 👎 to provide feedback. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,10 @@ | ||
| # PyPI Publish Workflow | ||
| # | ||
| # Triggered when a GitHub Release is published (draft → published). | ||
| # Builds the Python package and uploads it to PyPI using OIDC trusted publishing. | ||
| # Builds the Python package and uploads it to PyPI using PYPI_TOKEN. | ||
| # | ||
| # Prerequisites: | ||
| # - PyPI trusted publisher configured for this repository: | ||
| # https://docs.pypi.org/trusted-publishers/creating-a-project-through-oidc/ | ||
| # Owner: airbytehq | ||
| # Repository: airbyte-api-python-sdk | ||
| # Workflow: publish.yml | ||
| # Environment: pypi | ||
| # - PYPI_TOKEN secret configured in the repository | ||
|
|
||
| name: Publish to PyPI | ||
|
|
||
|
|
@@ -24,11 +19,6 @@ jobs: | |
| publish: | ||
| name: Build & Publish to PyPI | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: pypi | ||
| url: https://pypi.org/project/airbyte-api/ | ||
| permissions: | ||
| id-token: write | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
@@ -42,4 +32,6 @@ jobs: | |
| run: uv build | ||
|
|
||
| - name: Publish to PyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| run: uv publish | ||
| env: | ||
| UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
|
Comment on lines
34
to
+37
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 CONTRIBUTING.md still references OIDC publishing after switch to PYPI_TOKEN The PR changes both Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback. |
||
Uh oh!
There was an error while loading. Please reload this page.