Skip to content

Commit a3959dd

Browse files
committed
Submit URLs to IndexNow
1 parent e2e95c6 commit a3959dd

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/deploy-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ jobs:
6363
env:
6464
SITE_URL: ${{ env.SITE_URL }}
6565
API_KEY: ${{ env.INDEXNOW_KEY }}
66-
run: .github/workflows/scripts/index-now.sh
66+
run: make submit-index-now

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ spell-check: ## Run spell check on markdown files
2222
build: ## Builds the website package
2323
@ENV=$(env) .github/workflows/scripts/build.sh
2424

25+
submit-index-now: ## Submits Hugo site URLs to IndexNow endpoints
26+
@.github/workflows/scripts/index-now.sh
27+
2528
run: ## Start local server. Receives `env` argument. `env=production` will run in production mode. Any other value will fallback to development
2629
@if [ "$(env)" = "production" ]; then \
2730
echo "### Running in production mode ###"; \

0 commit comments

Comments
 (0)