Skip to content

Commit

Permalink
Add release workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
zjowowen committed Oct 31, 2024
1 parent 3cc02df commit 7731262
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ jobs:
run: |
python -m twine upload dist/*
# Step 5: Upload the package to PyPI
- name: Upload to PyPI
if: matrix.python-version == '3.9' # Publish only once, on Python 3.9
env:
TWINE_USERNAME: "zjowowen" # PyPI username for token-based authentication
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} # Use the token stored in GitHub Secrets
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring # Disable keyring
run: |
python -m twine upload dist/*
# Step 6: Clean up the build artifacts
- name: Remove build artifacts
if: matrix.python-version == '3.9' # Clean up once after publishing
Expand Down

0 comments on commit 7731262

Please sign in to comment.