-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (74 loc) · 2.29 KB
/
Copy pathdocs-deploy.yml
File metadata and controls
84 lines (74 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Deploy docs to GitHub Pages
on:
push:
branches: [master]
paths:
- "docs/**"
- "mkdocs.yml"
- "docs-requirements.txt"
- ".github/workflows/docs-deploy.yml"
- "README.md"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
name: Build site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: pip
- name: Install MkDocs
run: pip install -r docs-requirements.txt
- name: Build site
run: mkdocs build --strict --site-dir _site
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: _site
deploy:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4
notify-indexnow:
name: Notify IndexNow (Bing/Yandex/etc.)
needs: deploy
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- name: Submit URLs to IndexNow
run: |
curl -sS -X POST "https://api.indexnow.org/IndexNow" \
-H "Content-Type: application/json; charset=utf-8" \
-d '{
"host": "davegerson.github.io",
"key": "8fe40a58a84f43c8ad4b7fb082e2b995",
"keyLocation": "https://davegerson.github.io/agent-baton/8fe40a58a84f43c8ad4b7fb082e2b995.txt",
"urlList": [
"https://davegerson.github.io/agent-baton/",
"https://davegerson.github.io/agent-baton/orchestrator-usage/",
"https://davegerson.github.io/agent-baton/agent-roster/",
"https://davegerson.github.io/agent-baton/architecture/",
"https://davegerson.github.io/agent-baton/cli-reference/",
"https://davegerson.github.io/agent-baton/api-reference/"
]
}' \
-w "\nHTTP %{http_code}\n"