pypi-publish.yml 568 B

1234567891011121314151617181920212223
  1. name: PyPI publish
  2. on:
  3. release:
  4. types: [published]
  5. jobs:
  6. publish:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v2
  10. - name: Set up Python
  11. uses: actions/setup-python@v1
  12. with:
  13. python-version: 3.x
  14. - name: Install dependencies
  15. run: python -m pip install wheel
  16. - name: Build
  17. run: python setup.py sdist bdist_wheel
  18. - name: Publish to PyPI
  19. uses: pypa/gh-action-pypi-publish@master
  20. with:
  21. user: __token__
  22. password: ${{ secrets.pypi_password }}