Move publish commands to tasks.py