ImperialCollegeLondon / virtual_ecosystem

This repository is the home for the codebase for the Virtual Ecosystem project.
https://virtual-ecosystem.readthedocs.io
BSD 3-Clause "New" or "Revised" License
9 stars 1 forks source link

Set up new trusted publication workflow #405

Closed davidorme closed 5 months ago

davidorme commented 6 months ago

Is your feature request related to a problem? Please describe.

It is going to be much easier to manage publication of the Virtual Ecosystem as part of the GH actions workflow using trusted publishing, rather than relying on authentication using PyPI tokens. For a start, those tokens need to be stored securely but also shared amongst team members who want to make a release.

@dalonsoa pointed to a similar approach here:

https://github.com/ImperialCollegeLondon/virtual_ecosystem/pull/401#pullrequestreview-1913398522 https://github.com/EnergySystemsModellingLab/MUSE_OS/blob/develop/.github/workflows/publish.yml

Describe the solution you'd like

Set up a GH workflow to publish when a release is made. I think the sequence is basically: