mne-tools / mne-connectivity

Connectivity algorithms that leverage the MNE-Python API.
https://mne.tools/mne-connectivity/dev/index.html
BSD 3-Clause "New" or "Revised" License
65 stars 34 forks source link

[MAINT] Add release workflow #198

Closed tsbinns closed 1 month ago

tsbinns commented 1 month ago

@larsoner suggested in #181 to modernise publishing to PyPI with trusted artefact publishing on release.

Was suggested to use the MNE-BIDS-Pipeline workflow as a template and removing the username/password stuff: https://github.com/mne-tools/mne-bids-pipeline/blob/main/.github/workflows/release.yml

Haven't touched the existing publish_release.yml workflow. Very minor but wasn't sure if we should use this name, rename to release.yml, ygm.

Also had to add a new rule to the .yamllint.yml config for pre-commit yamllint check to pass on my windows machine due to unix vs. dos line endings.