Skip to content

Commit

Permalink
rev 2 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiemu authored Oct 9, 2024
1 parent 5a56e5e commit e81ec3a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

permissions:
contents: read
id-token: write # Grant permissions to write an OIDC token
id-token: write # Grant permissions to generate an OIDC token

jobs:
release:
Expand All @@ -22,16 +22,15 @@ jobs:

- name: Install dependencies
run: |
# Install required packages, including twine for publishing
python -m pip install --upgrade pip setuptools wheel build twine
- name: Build package
run: |
# Use 'build' to create source and wheel distributions
python -m build
- name: Publish to PyPI using OIDC
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
# This step uses the OIDC token to authenticate with PyPI
# Use 'twine' to upload the built distributions to PyPI
python -m twine upload --repository pypi dist/*

0 comments on commit e81ec3a

Please sign in to comment.