added condition to deploy plugin only when file download
fixed typo