Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

Website deploy: send the sitemap's pages to IndexNow (Bing and others) after each deploy

islandmed1b0bd2e8247b
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
index 5c04d4a1..66a44529 100644
--- a/.github/workflows/pages.yml
+++ b/.github/workflows/pages.yml
@@ -29,3 +29,13 @@ jobs:
path: website
- id: deployment
uses: actions/deploy-pages@v4
+ # Tell Bing and the other IndexNow search engines about the pages straight away (key file in website/).
+ - name: IndexNow
+ continue-on-error: true
+ run: |
+ key=$(basename website/[0-9a-f]*.txt .txt)
+ urls=$(grep -o '<loc>[^<]*' website/sitemap.xml | sed 's/<loc>//' | python3 -c "import sys,json; print(json.dumps(sys.stdin.read().split()))")
+ sleep 60 # let Pages publish the new files first
+ curl -sS -o /dev/null -w 'IndexNow: HTTP %{http_code}\n' -X POST https://api.indexnow.org/indexnow \
+ -H 'Content-Type: application/json; charset=utf-8' \
+ -d "{\"host\":\"sculptforge.app\",\"key\":\"$key\",\"keyLocation\":\"https://sculptforge.app/$key.txt\",\"urlList\":$urls}"