Kap plugin - Opens a window with the gif so you can drag and drop it somewhere else, like GitHub.
In the Kap menu, go to Preferences…, select the Plugins pane, find this plugin, and click Install.
In the editor, after recording, select GIF, and then Drag and Drop.
MIT © @albinekb