upload-pypi.yml 487 B

12345678910111213141516171819202122232425
  1. name: Upload package to pypi
  2. on:
  3. push:
  4. branches:
  5. - "master"
  6. jobs:
  7. upload:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout the repository
  11. uses: actions/checkout@v2
  12. - name: Setup Python
  13. uses: actions/setup-python@v2
  14. with:
  15. python-version: "3.8"
  16. - name: Publish package
  17. run: |
  18. pip install poetry
  19. poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
  20. poetry publish --build