From 68b2492344dd16061ac5b4b7a12d615b564033af Mon Sep 17 00:00:00 2001 From: masesdevelopers <94312179+masesdevelopers@users.noreply.github.com> Date: Mon, 30 Sep 2024 17:24:19 +0200 Subject: [PATCH] Creates Index Now as scheduled workflow --- .github/workflows/indexnow.yml | 23 +++++++++++++++++++++++ .github/workflows/jekyll-gh-pages.yml | 15 +-------------- 2 files changed, 24 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/indexnow.yml diff --git a/.github/workflows/indexnow.yml b/.github/workflows/indexnow.yml new file mode 100644 index 0000000000..33fca2c1f6 --- /dev/null +++ b/.github/workflows/indexnow.yml @@ -0,0 +1,23 @@ +# 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' + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + indexing: + runs-on: ubuntu-latest + steps: + - name: IndexNow Action + uses: bojieyang/indexnow-action@v2 + with: + sitemap-location: 'https://jcoreflector.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 fe1633d713..c373cc891c 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -65,17 +65,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 - - # commented since the action does not support more than 10000 files - #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