Updated publish.py.