name: Submit production URLs to IndexNow on: deployment_status: workflow_dispatch: concurrency: group: indexnow-production cancel-in-progress: true jobs: submit: if: >- github.event_name == 'workflow_dispatch' || (github.event.deployment_status.state == 'success' && github.event.deployment_status.environment == 'Production') runs-on: ubuntu-latest permissions: contents: read steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 22 - run: node scripts/submit-indexnow.mjs