When we want to do a new release, push a git tag with format v** and workflow releases.yml executes.
This workflow internally uses go-releaser to push a new release.
Please follow the below detailed steps.
- Create a tag in format
v202205240715
git tag -a `date "+v%Y%m%d%H%M"` -m "Release a new version"
- Get the tag name
git tag
- Push the newly created tag
git push origin <tag>
- Check that workflow
releases.ymlwas triggered - Once completed, go to repo releases page and edit the newly created release as
pre-release, so we can do sanity testing before we officially release - Recommend to do basic sanity testing (see below) on the new release.
- Once sanity testing is done, we can edit the release and mark it as
Latest versionand edit the release notes.
- Access to a GHES test server
- Create a PAT token with
site-adminscope in the GHES environment forghe-admin
-
Update below Repository level secrets:
- sanity_test_site_admin_token: The PAT generated earlier
- sanity_test_ghes_url: The URL to the GHES instance
- sanity_test_releasedatetime: The tag datetime string for the release to test without the
v(e.g.202211070205)
-
Manually trigger this workflow: https://github.com/actions/actions-sync/actions/workflows/actions-sync-e2e-test-caller.yml