diff --git a/.github/workflows/indexnow.yml b/.github/workflows/indexnow.yml new file mode 100644 index 0000000000..456c81e059 --- /dev/null +++ b/.github/workflows/indexnow.yml @@ -0,0 +1,21 @@ +# Sample workflow for building and deploying a Jekyll site to GitHub Pages +name: Index Now + +on: + schedule: + # * is a special character in YAML so you have to quote this string + # https://crontab.cronhub.io/ + - cron: '0 0 * * SAT' + +jobs: + indexing: + runs-on: ubuntu-latest + steps: + - name: IndexNow Action + uses: bojieyang/indexnow-action@v2 + with: + sitemap-location: 'https://jnet.masesgroup.com/sitemap.xml' + key: ${{ secrets.INDEXNOW_KEY }} + since-unit: week + limit: 10000 + timeout: 600000 diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index 88e9a8ed28..6f89a06e1c 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -64,16 +64,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 - - indexing: - runs-on: ubuntu-latest - needs: deploy - steps: - - name: IndexNow Action - uses: bojieyang/indexnow-action@v2 - with: - sitemap-location: '${{ needs.deploy.outputs.page_url }}sitemap.xml' - key: ${{ secrets.INDEXNOW_KEY }} - limit: 10000 - timeout: 600000 + uses: actions/deploy-pages@v4 \ No newline at end of file