You are always responsible for how you act. It is very true my friends, you and only you are responsible for you actions. A wise man once said - we cannot control what happens to us - but we can control what to do about it,.
Just because you aren't given the credit and haven't been recognised for your work doesn't mean you have to give up or stop. You don't always need credit, other people do not always have to know what you are capable of doing as long as you do.