From 0d3ef38769d6181899f4b45f8ebcd55892dde389 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Sat, 5 Apr 2025 21:16:55 +0700 Subject: [PATCH] feat(indexnow): indexnow after deploy --- .github/workflows/deploy-pages.yml | 10 ++++++++++ .github/workflows/indexnow.yml | 16 ---------------- 2 files changed, 10 insertions(+), 16 deletions(-) delete mode 100644 .github/workflows/indexnow.yml diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 7148c40..c268398 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -80,3 +80,13 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + + check-and-submit: + runs-on: ubuntu-latest + needs: deploy + steps: + - name: indexnow-action + uses: bojieyang/indexnow-action@v2 + with: + sitemap-location: 'https://tiennm99.github.io/sitemap.xml' + key: ${{ secrets.INDEXNOW_KEY }} diff --git a/.github/workflows/indexnow.yml b/.github/workflows/indexnow.yml deleted file mode 100644 index f1c83e0..0000000 --- a/.github/workflows/indexnow.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: 'IndexNow' -on: - create: - schedule: - - cron: '0 17 * * *' - workflow_dispatch: - -jobs: - check-and-submit: - runs-on: ubuntu-latest - steps: - - name: indexnow-action - uses: bojieyang/indexnow-action@v2 - with: - sitemap-location: 'https://tiennm99.github.io/sitemap.xml' - key: ${{ secrets.INDEXNOW_KEY }} \ No newline at end of file