Add condition on publish_assets