Merge pull request #36 from ClovertaTheTrilobita/dev

Added Indexnow
This commit is contained in:
ClovertaTheTrilobita 2026-08-29 16:56:31 +08:00 committed by GitHub
commit 98923bf0b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 1 deletions

View file

@ -105,6 +105,15 @@ jobs:
dist/ \
${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/
- name: Submit to IndexNow
uses: bojieyang/indexnow-action@v3
with:
sitemap-location: '${{ env.SITE_URL }}sitemap.xml'
key: ${{ vars.INDEXNOW_KEY }}
lastmod-required: false
endpoint: api.indexnow.org
limit: 1000
manual-deploy:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
@ -165,4 +174,13 @@ jobs:
--no-group \
-e "ssh -p ${DEPLOY_PORT}" \
dist/ \
${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/
${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/
- name: Submit to IndexNow
uses: bojieyang/indexnow-action@v3
with:
sitemap-location: '${{ env.SITE_URL }}sitemap.xml'
key: ${{ vars.INDEXNOW_KEY }}
lastmod-required: false
endpoint: api.indexnow.org
limit: 1000

View file

@ -0,0 +1 @@
888c64d8d7d9a2b605bcd5277021a414