You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor: Consolidate to single unified deployment job
Replaced two separate deployment jobs with one unified job that detects
the branch and deploys accordingly. This completely eliminates the
concurrency/cancellation issues.
Changes:
- Single 'deploy' job replaces 'deploy-develop' and 'deploy-main'
- Uses conditional steps with 'if: github.ref_name == ...' checks
- Uses conditional parameters in peaceiris action:
- destination_dir: develop branch → 'development', main → '.'
- keep_files: develop branch → true, main → false
How it works:
- Develop: Deploys to /development/ with keep_files, skips preservation
- Main: Preserves /development/, deploys to root, restores /development/
Benefits:
- No more concurrency conflicts (only one deployment per workflow)
- Simpler, more maintainable code
- Same end result with less complexity
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments