Skip to content

Commit 87b089a

Browse files
committed
Add IndexNow to pages build
1 parent cae3e4d commit 87b089a

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/indexnow.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: IndexNow
2+
permissions:
3+
contents: read
4+
pull-requests: write
5+
6+
on:
7+
page_build
8+
9+
jobs:
10+
indexnow:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: create IndexNow key
14+
run: echo "${{ secrets.INDEXNOW_KEY }}" > "${{ secrets.INDEXNOW_KEY }}.txt"
15+
16+
- name: IndexNow
17+
uses: bojieyang/indexnow-action@v2
18+
with:
19+
sitemap-location: 'https://sigmyne.github.io/smax-postgres/sitemap.xml'
20+
key: ${{ secrets.INDEXNOW_KEY }}
21+
key-location: 'https://sigmyne.github.io/smax-postgres/${{ secrets.INDEXNOW_KEY }}.txt'
22+
limit: 200
23+

0 commit comments

Comments
 (0)