Skip to content

Commit

Permalink
Use pypa/gh-action-pypi-publish@release/v1 for upload to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
brasmusson committed Jan 4, 2024
1 parent cd224f8 commit ddb1bcb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
name: Release
runs-on: ubuntu-latest
environment: Release
permissions:
id-token: write
defaults:
run:
working-directory: python
Expand All @@ -32,5 +34,10 @@ jobs:
- name: Build dist
run: python setup.py sdist bdist_wheel

- name: Upload
run: twine upload --repository=testpypi dist/*
- name: Check dist
run: twine check dist/*

- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit ddb1bcb

Please sign in to comment.