fix: update build rules to trigger only on main branch

Merged Nguyễn Ngọc Đại requested to merge hotfix/cicd2 into main

Merge request reports