exotica-jewelry / ringsforever

Handcrafted titanium wedding rings. This is the flat (post-retirement) website repo.
https://www.titaniumringsforever.com
Other
0 stars 0 forks source link

Submit sitemap automatically #11

Open rootwork opened 3 years ago

rootwork commented 3 years ago

Followup to #5, we should have an action that submits the sitemap every time that file changes.

Started building one, but so far it's skipping every time.

rootwork commented 3 years ago

It looks like the old action that is being used might be pinging the wrong address.

The correct address for submitting to Google is:

https://www.google.com/ping?sitemap=https://www.titaniumringsforever.com/sitemap.xml

rootwork commented 3 years ago

And Bing is: https://www.bing.com/webmaster/ping.aspx?siteMap=https://www.titaniumringsforever.com/sitemap.xml

rootwork commented 3 years ago

This might be working? Need to check on another day to see if this workflow:

https://github.com/exotica-jewelry/ringsforever/actions?query=workflow%3A%22Sitemap+submitter%22

is actually generating an updated sitemap here:

https://search.google.com/u/2/search-console/sitemaps?resource_id=http%3A%2F%2Fwww.titaniumringsforever.com%2F&hl=en

rootwork commented 3 years ago

Folded it into one action: https://github.com/exotica-jewelry/ringsforever/commit/5f01ee7c93ed36733e224fd2dd9b608ac30bf35b#diff-87ee5504a3e25ac558b343724c905f2f7949e8cec3d92b9c4300bb922afa164f

Still need to check, then, if THIS action is submitting (it seems like it is): https://github.com/exotica-jewelry/ringsforever/actions?query=workflow%3A%22Sitemap+generator%22

Ideally it should be changed so it only commits & submits (ha) when there is a change to the sitemap, not on every push to GH.

rootwork commented 3 years ago

It is definitely submitting; need to check if it only builds & submits when there's a change to the sitemap.