Export public key?

How do I generate/export public key?
Is it the .gpg file?