Skip to content

Commit

Permalink
add PyPI deployer
Browse files Browse the repository at this point in the history
  • Loading branch information
mozman committed Jul 14, 2022
1 parent 6b36f08 commit c202162
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy_source.yml
@@ -0,0 +1,24 @@
name: PyPI source deployer
on:
push:
tags:
- 'v*'
jobs:
# Deploy source distribution
Source-dist:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Create source distribution
run: python setup.py sdist --formats=zip
- name: Upload source package to PyPI
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
pip install twine
twine upload dist/*

0 comments on commit c202162

Please sign in to comment.