Skip to content

Commit b2ee40d

Browse files
committed
workflow: reorganize IndexNow submission process
Removed IndexNow submission steps from the deploy workflow and created a dedicated workflow for IndexNow submissions to improve clarity and maintainability. Signed-off-by: Chiho Sin <[email protected]>
1 parent 2efe691 commit b2ee40d

File tree

2 files changed

+67
-11
lines changed

2 files changed

+67
-11
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,3 @@ jobs:
6060
- name: Deploy to GitHub Pages
6161
id: deployment
6262
uses: actions/deploy-pages@v4
63-
64-
indexnow:
65-
name: Submit IndexNow
66-
needs: deploy
67-
runs-on: ubuntu-latest
68-
steps:
69-
- name: Submit IndexNow
70-
uses: bojieyang/indexnow-action@v2
71-
with:
72-
sitemap-location: https://docs.fobestudio.com/sitemap.xml
73-
key: ${{ secrets.INDEXNOW_KEY }}

.github/workflows/indexnow.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: IndexNow Submission
2+
3+
on:
4+
# schedule:
5+
# - cron: 0 0,12 * * *
6+
workflow_dispatch:
7+
8+
jobs:
9+
indexnow:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Submit IndexNow to Bing
13+
uses: bojieyang/indexnow-action@v2
14+
with:
15+
sitemap-location: https://docs.fobestudio.com/sitemap.xml
16+
since: 1
17+
since-unit: day
18+
key: ${{ secrets.INDEXNOW_KEY }}
19+
endpoint: www.bing.com
20+
- name: Submit IndexNow to indexnow.org
21+
uses: bojieyang/indexnow-action@v2
22+
with:
23+
sitemap-location: https://docs.fobestudio.com/sitemap.xml
24+
since: 1
25+
since-unit: day
26+
key: ${{ secrets.INDEXNOW_KEY }}
27+
endpoint: api.indexnow.org
28+
- name: Submit IndexNow to Yandex
29+
uses: bojieyang/indexnow-action@v2
30+
with:
31+
sitemap-location: https://docs.fobestudio.com/sitemap.xml
32+
since: 1
33+
since-unit: day
34+
key: ${{ secrets.INDEXNOW_KEY }}
35+
endpoint: yandex.com
36+
- name: Submit IndexNow to Seznam
37+
uses: bojieyang/indexnow-action@v2
38+
with:
39+
sitemap-location: https://docs.fobestudio.com/sitemap.xml
40+
since: 1
41+
since-unit: day
42+
key: ${{ secrets.INDEXNOW_KEY }}
43+
endpoint: www.seznam.cz
44+
- name: Submit IndexNow to Amazon
45+
uses: bojieyang/indexnow-action@v2
46+
with:
47+
sitemap-location: https://docs.fobestudio.com/sitemap.xml
48+
since: 1
49+
since-unit: day
50+
key: ${{ secrets.INDEXNOW_KEY }}
51+
endpoint: indexnow.amazonbot.amazon
52+
- name: Submit IndexNow to Naver
53+
uses: bojieyang/indexnow-action@v2
54+
with:
55+
sitemap-location: https://docs.fobestudio.com/sitemap.xml
56+
since: 1
57+
since-unit: day
58+
key: ${{ secrets.INDEXNOW_KEY }}
59+
endpoint: searchadvisor.naver.com
60+
- name: Submit IndexNow to Yep
61+
uses: bojieyang/indexnow-action@v2
62+
with:
63+
sitemap-location: https://docs.fobestudio.com/sitemap.xml
64+
since: 1
65+
since-unit: day
66+
key: ${{ secrets.INDEXNOW_KEY }}
67+
endpoint: indexnow.yep.com

0 commit comments

Comments
 (0)