pyro-kinetics / pyrokinetics

Python library to run and analyse gyrokinetics simulations
https://pyrokinetics.readthedocs.io/en/latest/#
GNU Lesser General Public License v3.0
25 stars 6 forks source link

Update publishing workflow #340

Closed LiamPattinson closed 6 months ago

LiamPattinson commented 6 months ago

In advance of our imminent next release (Issue https://github.com/pyro-kinetics/pyrokinetics/issues/316), I've updated the PyPI publishing workflow to meet the new standards. The previous method of storing PyPI usernames and passwords with GitHub secrets is now obsolete, and PyPI now prefers to use 'trusted publishers' -- this page explains how to configure everything. I think @bpatel2107 or @ZedThree will have to configure things on the PyPI side.

Things changed in this update:

LiamPattinson commented 6 months ago

While I'm at it, just updated the upload/download-artifact actions as the old versions are due to be deprecated within the year.

bpatel2107 commented 6 months ago

I've followed the instructions and added in a trusted publisher (I think)

ZedThree commented 6 months ago

@bpatel2107 Should we get this in and then release 0.7.0?

bpatel2107 commented 6 months ago

There are quite a few smaller issues I am working on that I would like to get in. We can of course do another release as we have them quite far apart as is. Maybe in a week or two we can do 0.7.1?

ZedThree commented 6 months ago

More frequent, smaller releases is fine. It's only a few button clicks to make a new one :)

bpatel2107 commented 6 months ago

I just want #324 merged and then we can publish as that is quite important. As soon as that is merged (should be done now) I'll make a new release.