When the word swear means promise strongly to do something we can use either a noun clause or an infinitive after it:
I swear I will not tell anyone.
I swear to seek revenge.
What if we use phrases like to God or By Almighty God? Can we still use the same structures?
I swear to God to seek revenge.
I swear by Almighty God to seek revenge.
Are these sentences grammatically correct?