Skip to content

Indexing

Indexing #272

Workflow file for this run

name: Indexing
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
jobs:
indexnow:
name: Submit URLs to IndexNow
runs-on: ubuntu-latest
steps:
- name: Submit URLs to IndexNow
uses: bojieyang/indexnow-action@v2
with:
sitemap-location: ${{ vars.SITE_BASE_URL }}/sitemap-0.xml
key: ${{ secrets.INDEXNOW_KEY }}
key-location: ${{ vars.SITE_BASE_URL }}/IndexNow-${{ secrets.INDEXNOW_KEY }}.txt
failure-strategy: error
endpoint: api.indexnow.org
google-indexing:
name: Submit URLs to Google
runs-on: ubuntu-latest
env:
SITE_BASE_URL: ${{ VARS.SITE_BASE_URL }}
GIS_CLIENT_EMAIL: ${{ secrets.GIS_CLIENT_EMAIL }}
GIS_PRIVATE_KEY: ${{ secrets.GIS_PRIVATE_KEY }}
steps:
- uses: actions/checkout@v4
- name: Set up
uses: ./.github/workflows/setup-action
- name: Submit URLs to Google
run: pnpm run index