Implement release-based deployment control to eliminate master branch resets #596
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Currently, deploying specific versions of WikiGDrive to production requires resetting the master branch to the target commit, creating releases from that reset state, and then resetting master back. This process is:
Solution
This PR implements a release-based deployment control system that allows deploying any commit, tag, or branch without touching the master branch.
How it works
When creating a GitHub release, you can now specify which version to deploy by adding a deployment target in the release description:
The production deployment workflow will:
Supported deployment targets
deploy-target: v2.15.14
(for rollbacks)deploy-target: a1b2c3d4e5f6
(for specific tested builds)deploy-target: hotfix/security-patch
(for emergency fixes)Key benefits
Example usage
Rollback scenario:
Emergency hotfix:
Implementation details
.github/workflows/prod-server-deploy.yml
to support deployment target parsingDeploy-Target:
works the same asdeploy-target:
)This change eliminates the need for risky master branch resets while providing more flexible and safer deployment options for the team.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.