Closed MetRonnie closed 4 years ago
Also, here is a demo where the stage 2 - publish workflow fails: https://github.com/MetRonnie/pls/pull/15
Document this new release process somewhere - here on the repo, or in the Metomi docs site?
Stick in a PR to: https://github.com/cylc/cylc-admin/blob/master/docs/howto/create-a-release.md
Closes #171
Automates the release process of http://www-nwp/~fcm/metomi-docs/support/how_to_create_a_git_release.html (written by @wxtim) as much as possible.
Summary of new release process
Go to the Actions tab of the repo and choose the "Release stage 1 - create release PR" workflow
Click the "Run workflow" dropdown and enter the version number in the input field (also the base branch to open the PR against, defaults to master)
The workflow creates a PR with the changes
It also automatically adds the milestone to the PR if there is one that matches the version number
The body text of the PR has a checklist of non-automatable things to do before merging the PR, as per Tim's guide
The release author requests a review as usual
If any changes are needed, they can be pushed to the PR branch
After approval and merge of the PR, a second workflow automatically publishes to PyPI, and publishes a GitHub release
It also posts a comment on the PR with the outcome with a link to the GitHub release so the author can edit the description (or with instructions to manually publish if the publishing failed for some reason)
It also automatically deletes the PR branch, and closes the milestone if it was added
Demo
https://github.com/MetRonnie/pls/pull/18
Advantages of this approach
Things left to do:
here on the repo, or in the Metomi docs site?draft PR opened https://github.com/cylc/cylc-admin/pull/103