Add upload to pypi step in workflow
closes #230
Thanks @j-c-cook.
Is there a way to test this without publishing a release, or do we have to test it on a release candidate version?
I probably need to configure the secrets on the project.
@MassimoCimmino you can configure it to push to https://test.pypi.org/ for testing purposes. You may need to modify the deployment action to include a repository_url, and then have separate secrets for test.pypi.org.
Without modifying the current workflow, I think you would need to publish a release candidate to test it.
Matt seems to be proposing an alternative. Which would require if: github.event.release && github.event.action == 'published' to be temporarily removed for the test to run without a release being created.
@MassimoCimmino see here for an example. Changing the url to https://test.upload.pypi.org/legacy/ will push it to test.pypi.org if you like during your testing.
@MassimoCimmino see here for an example. Changing the url to
https://test.upload.pypi.org/legacy/will push it to test.pypi.org if you like during your testing.
Please note that "here" is not currently a hyper-reference.
This link for example: https://github.com/mitchute/SecondaryCoolantProps/blob/cdd09459f1a692aaef2924125264753a36a2841d/.github/workflows/release.yml