pygfunction icon indicating copy to clipboard operation
pygfunction copied to clipboard

Add upload to pypi step in workflow

Open j-c-cook opened this issue 3 years ago • 6 comments

closes #230

j-c-cook avatar Nov 27 '22 18:11 j-c-cook

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 avatar Nov 28 '22 14:11 MassimoCimmino

@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.

mitchute avatar Nov 28 '22 15:11 mitchute

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.

j-c-cook avatar Nov 28 '22 16:11 j-c-cook

@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.

mitchute avatar Nov 28 '22 16:11 mitchute

@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.

j-c-cook avatar Nov 28 '22 17:11 j-c-cook

This link for example: https://github.com/mitchute/SecondaryCoolantProps/blob/cdd09459f1a692aaef2924125264753a36a2841d/.github/workflows/release.yml

mitchute avatar Nov 28 '22 17:11 mitchute