enthought / apptools

Other
37 stars 24 forks source link

Add workflow to publish releases to PyPI #315

Closed mdickinson closed 2 years ago

mdickinson commented 2 years ago

This PR adds a workflow which automatically publishes releases to PyPI.

This is almost identical to the corresponding workflow on Envisage (which ran successfully this morning). The only difference is an extra line to upgrade pip if necessary. (This line doesn't make a difference right now, but it's not inconceivable that some future release of build or twine can only be installed properly with an updated pip.)

I've tested the commands in the workflow manually by:

The strict checks passed for me.

mdickinson commented 2 years ago

Note: appropriate PYPI_USERNAME and PYPI_PASSWORD secrets have been added to the repository.