Skip to content
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

Fix: poetry now has stricter publishing requirements, move to recommended publishing strategy #304

Merged
merged 2 commits into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
on:
release:
types: [created]

permissions:
id-token: write
jobs:
tests:
name: Linting and running tests
Expand Down Expand Up @@ -54,13 +55,8 @@
make replace_version version=${TAG_NAME#v}
- name: Download binaries & build
run: make build
- name: Publish to PyPI
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: __token__
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Dismissed Show dismissed Hide dismissed
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
Expand Down
Loading