workflow for release
pre-steps
-
update 'version' and 'appVersion' filed in 'charts/*/Chart.yaml'
-
update version in '/VERSION'
-
a version tag should be set on right branch. The version should go with
-
v0.1.0-rc0
-
v0.1.0-rc1
-
v0.1.0
-
v0.1.1
-
v0.1.2
-
v0.2.0-rc0
-
v0.2.0
-
push a version tag
If a tag vx.x.x is pushed , the following steps will automatically run:
-
check the tag name is same with '/VERSION'
-
create a branch named 'release-vx.x.x'
-
build the images with the pushed tag, and push to ghcr registry
-
generate the changelog by historical PR labeled as "pr/release/*"
submit the changelog file to directory 'changelogs' of branch 'github_pages', with PR labeled as "pr/release/robot_update_githubpage".
changelogs is generated by historical PR label:
label "release/feature-new" to be classified to "New Features"
label "release/feature-changed" to be classified to "Changed Features"
label "release/bug" to be classified to "Fixes"
-
build the chart package with the pushed tag, and submit a PR to branch 'github_pages'
you cloud get the chart with command
helm repo add $REPO_NAME https://kdoctor-io.github.io/$REPO_NAME
-
submit '/docs' to '/docs' of branch 'github_pages'
-
create a GitHub Release attached with the chart package and changelog
-
Finally, by hand, need approve the chart PR labeled as "pr/release/robot_update_githubpage" , and changelog PR labeled as "pr/release/robot_update_githubpage"
post
- Submit a issue of the version update to the documentation site --> https://github.com/DaoCloud/DaoCloud-docs