Skip to content

Commit 3586a8e

Browse files
committed
Update the publishing workflow
Signed-off-by: Craig Tracey <craig@arctir.com>
1 parent e8ba803 commit 3586a8e

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/regenerate-client.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -110,20 +110,16 @@ jobs:
110110
# Build package
111111
poetry build
112112
113-
# Publish to GitHub Packages
114-
pip install twine
115-
twine upload \
116-
--repository-url https://upload.pypi.org/github/${{ github.repository_owner }}/ \
117-
--username ${{ github.actor }} \
118-
--password ${{ secrets.GITHUB_TOKEN }} \
119-
--skip-existing \
120-
dist/*
121-
122-
echo "✓ Package built and published"
113+
echo "✓ Package built"
123114
else
124115
echo "No changes to commit"
125116
fi
126117
118+
- name: Publish to PyPI
119+
uses: pypa/gh-action-pypi-publish@release/v1 # Handles OIDC automatically
120+
with:
121+
repository-url: https://upload.pypi.org/legacy/ # Default for PyPI
122+
127123
- name: Create summary
128124
if: always()
129125
run: |

0 commit comments

Comments
 (0)