diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index 6e2bee4faf..5ea386b559 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -31,10 +31,12 @@ jobs: uses: actions/checkout@v4 - name: Setup Pages uses: actions/configure-pages@v5 + - name: Setup IndexNow # Generate files dynamically to prevent them from being leaked in public repositories. + run: echo ${{ secrets.INDEXNOW_KEY }} > ./docs/${{ secrets.INDEXNOW_KEY }}.txt - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: - source: ./ + source: ./docs/ destination: ./_site - name: Upload artifact uses: actions/upload-pages-artifact@v3 @@ -50,3 +52,16 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + + indexing: + runs-on: ubuntu-latest + needs: deploy + steps: + - name: IndexNow Action for JNet + 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 \ No newline at end of file diff --git a/docs/d8b8bd4e12b04559b53419cc8b571873.txt b/docs/d8b8bd4e12b04559b53419cc8b571873.txt deleted file mode 100644 index 368e694c74..0000000000 --- a/docs/d8b8bd4e12b04559b53419cc8b571873.txt +++ /dev/null @@ -1 +0,0 @@ -d8b8bd4e12b04559b53419cc8b571873 \ No newline at end of file