MAIN and DEV branch using GitHub workflow vs. Production and Development environment #1159
-
Hi Jason/community, I was wondering if i could get some clarification behind the idea for the current GitHub workflow setup? Why is there only a deployment for the main branch, and does that deploy a development, staging and production release. Won't it make more sense to link these to separate branches: dev->staging->main ? Is there a particular reason for the current setup that i'm perhaps missing? some thought or rational? Just curios, i will probably update the GitHub workflow files to do as described here, using a dev, staging and production branch. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Great question! The current GitHub workflow setup in the template uses a trunk-based branching strategy, which is why there's only a deployment for the main branch. In trunk-based development, the main branch serves as the central source of truth, and features are typically developed in short-lived branches that are frequently merged back into the main branch. This approach aims to reduce integration issues and streamline the development process. You can read more about trunk-based development and its benefits here. |
Beta Was this translation helpful? Give feedback.
Great question! The current GitHub workflow setup in the template uses a trunk-based branching strategy, which is why there's only a deployment for the main branch. In trunk-based development, the main branch serves as the central source of truth, and features are typically developed in short-lived branches that are frequently merged back into the main branch. This approach aims to reduce integration issues and streamline the development process. You can read more about trunk-based development and its benefits here.