Report build status before a step

Hey guys, is there any way to report commit status before a certain step? Let’s say for example that my pipeline is: build, test, lint & deploy. I’d like to put the green tick on GitHub before deploy.

I thought about writing a plugin that does this, but if the deploy step fails, I would override the current status, right? I mean, once the deploy finishes and it attempts to write.