You mean gist?
You have issues with exporting your diagram as a gist, correct?
If so, you should export it as XML and create a new public gist in you github as described here https://docs.github.com/en/get-started/writing-on-github/editing-and-sharing-content-with-gists/creating-gists