Realizing automatic standard process through github actions.
- [x] Automatically publish docs to shardingsphere-doc repository when released.
- [x] Automate the issue standard handling process.
- [x] Automatically publish image to docker registry when released.
Hi! I'm a student from Summer 2021. I would like to do this project as the Summer 2021 Project.
For automatically publish docs to shardingsphere-doc repository when released, I have a workflow which helps me automaticly sync repos from GitHub to Gitee: https://github.com/HollowMan6/LZU-Auto-COVID-Health-Report/blob/main/.github/workflows/repo-sync.yml , the mechanism behind this is such code: https://github.com/wearerequired/git-mirror-action/blob/master/git-mirror.sh . So I think such a logic can be used for realizing this feature, too. Just generate those docs then auto push commits to shardingsphere-doc repository.
For automating the issue standard handling process, I guess a workflow may not be the best way? Why not try some bots in GitHub Apps for this, such as https://github.com/marketplace/issue-label-bot . If such kind of bot can't be found, I can also help to make one. I'm the author of the LZU COVID Health Report: https://github.com/marketplace/lzu-covid-health-report , which now ranks first in GitHub MarketPlace Trending.

For automatically publish image to docker registry when released, I actually have a project that has realized this feature to push image to docker hub and also GitHub Container Registry with multiple architecture support realized by docker buildx: every time when I push a new commit, the workflow will automatically push the image with tag latest, and when I release a version, the released version's image will be automatically pushed to the registry tagged correctly. The workflow also supports a manual dispatch specifying the tag.

Here's the link of my workflow file for automatically publish image to docker registry : https://github.com/HollowMan6/LZU-Auto-COVID-Health-Report/blob/main/.github/workflows/docker-publish.yml
Please tell me if I got something wrong or there's a better idea. Thanks!
@HollowMan6 I'm glad you want to participate in this project, but there are other students already involved. I'll let you know if there's any new developments.
🔨 Task one: Automatically publish docs to shardingsphere-doc repository when released.
-
PR1 from
ShardingSphere-doc: 552- When someone commits to
masterbranch, changes will exist inpreviewdirectory. - Add a workflow
Update Document: When triggered, move files inpreviewdirectory tocurrentdirectory with some necessary operations( eg. sed, rm)
- When someone commits to
-
PR2: 11121
- keep the newest contents in
previewdirectory - When release published, trigger the workflow
Update Documentin theshardingsphere-docrepo (need asecret)
- keep the newest contents in
-
[ ] The token
PERSONAL_TOKENis supposed to be configured in theshardingsphererepo.
I just wanna confirm, that the final result of the issue-1 is,
Each release (tag) will own its doc site built from its doc source code, right? For instance, 5.0.0-beta will be presented in the dropdown of the Document header.
@avalon5666 @QiliangFan
@tristaZero @QiliangFan Document header will keep current struct, and add a master version in the dropdown for master branch. so, 5.0.0-beta will be presented in the 5.x(Current).
Got it, could we have a 5.x (Dev) only for master branch, as we may do some modifications according to the master (dev) programming update? Plus, we still need 5.0.0-beta (Current) for the released version. How do you think? @avalon566