prepare release v1.1.2 #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PyPI source deployer | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
# Deploy source distribution | |
Source-dist: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Create source distribution | |
run: | | |
python -m pip install setuptools | |
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/* |