release.yml 615 B

1234567891011121314151617181920212223242526
  1. name: Release
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. release:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout source
  11. uses: actions/checkout@v2
  12. - name: Install Python
  13. uses: actions/setup-python@v2
  14. - name: Install build dependencies
  15. run: python -m pip install -U pip setuptools wheel build
  16. - name: Build distributions
  17. run: python -m build
  18. - name: Publish package
  19. uses: pypa/gh-action-pypi-publish@release/v1
  20. with:
  21. user: __token__
  22. password: ${{ secrets.PYPI_API_TOKEN }}
  23. skip_existing: true