-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.66 KB
/
Copy pathpages.yml
File metadata and controls
58 lines (50 loc) · 1.66 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
name: Deploy static site to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure GitHub Pages
uses: actions/configure-pages@v5
- name: Upload static site
uses: actions/upload-pages-artifact@v4
with:
path: .
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# Tell IndexNow (Bing, Yandex, Seznam, Naver) that the site changed, so the
# new pages get crawled in minutes instead of waiting for a discovery pass.
# The key is public by design and must stay served at the keyLocation below.
- name: Ping IndexNow
continue-on-error: true
env:
INDEXNOW_KEY: 7c0adc110ed926fce21c24f8501c1239ca908db70bfd0d6ea30fd88cbf8e440b
run: |
curl -sS --fail-with-body -X POST https://api.indexnow.org/IndexNow \
-H 'Content-Type: application/json; charset=utf-8' \
-d "{
\"host\": \"simpleagentlab.com\",
\"key\": \"${INDEXNOW_KEY}\",
\"keyLocation\": \"https://simpleagentlab.com/${INDEXNOW_KEY}.txt\",
\"urlList\": [
\"https://simpleagentlab.com/\",
\"https://simpleagentlab.com/ai4ai/\",
\"https://simpleagentlab.com/rsihub/\"
]
}"