Merge pull request #91 from AndreMiras/feature/scream_update #88
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 release | |
on: [push] | |
jobs: | |
pypi: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Install dependencies | |
run: python -m pip install --upgrade setuptools wheel twine | |
- name: Build | |
run: | | |
python setup.py sdist bdist_wheel | |
twine check dist/* | |
- name: Publish package | |
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
run: | | |
python -m pip install twine | |
python -m twine upload dist/* |