Recently I made a promise with Allah to not commit this sin nor go back to it, but after a few days due to the weakness of my faith I broke the promise that I made to Allah. So can you please tell me how to make God pleased with me and the right thing to do if you break a promise with Allah.

No doubt breaking a promise under general is not acceptable let alone breaking the promise with Allah. The good thing is your conscious of your action. What i suggest you do is to strive to stay away from the sin, increase the sayings of Astagfirullaha, give out charity to those in need depending on your capability. It’s not an excuse to keep going back to the sin. You need a strong will power. Surround yourself with people who remind you of your duties toward Allah. Avoid going to places that are tempted.
He is always Merciful so long as we keep trying