You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
559 B

  1. name: Deploy
  2. on:
  3. push:
  4. tags:
  5. - '*'
  6. jobs:
  7. deploy:
  8. name: Deploy to PyPI
  9. if: startsWith(github.ref, 'refs/tags')
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Setup python
  13. uses: actions/setup-python@v4
  14. with:
  15. python-version: '3.8'
  16. - name: Check out code
  17. uses: actions/checkout@v3
  18. - name: Build the library
  19. env:
  20. PYVER: ${{ matrix.version }}
  21. run: python3 setup.py sdist
  22. - uses: pypa/gh-action-pypi-publish@release/v1
  23. with:
  24. password: ${{ secrets.PYPI_API_TOKEN }}