[mirror] Command-line application for uploading a site to a git-pages server

Fix domain name in the zone file record output by `--challenge`.

Changed files
+2 -2
+1 -1
README.md
··· 34 34 35 35 ```console 36 36 $ git-pages-cli https://mycoolweb.site --password xyz --challenge 37 - mycoolweb.site. 3600 IN TXT "317716dee4379c167e8b5ce9df38eb880e043e5a842d160fe8d5bb408ee0c191" 37 + _git-pages-challenge.mycoolweb.site. 3600 IN TXT "317716dee4379c167e8b5ce9df38eb880e043e5a842d160fe8d5bb408ee0c191" 38 38 ``` 39 39 40 40 To deploy a site from a git repository available on the internet (`--password` may be omitted if the repository is allowlisted via DNS):
+1 -1
main.go
··· 104 104 } 105 105 106 106 challenge := sha256.Sum256(fmt.Appendf(nil, "%s %s", siteUrl.Hostname(), *passwordFlag)) 107 - fmt.Fprintf(os.Stdout, "%s. 3600 IN TXT \"%x\"\n", siteUrl.Hostname(), challenge) 107 + fmt.Fprintf(os.Stdout, "_git-pages-challenge.%s. 3600 IN TXT \"%x\"\n", siteUrl.Hostname(), challenge) 108 108 os.Exit(0) 109 109 110 110 case *uploadGitFlag != "":