There are several dozen ways of saying this, some of them poetic, some of them abrupt, some of them witty.
I think Woody Allen has one of the best:
’80% of success is showing up.’
So, don’t give up.
You know what Samuel Beckett said about writing?
He said: ‘Try again. Fail again. Fail better.’
PS Don’t give up.