[deploy demos] fix sequence of tasks