diff --git a/.github/workflows/Sitemap.yml b/.github/workflows/Sitemap.yml new file mode 100644 index 00000000..9b2df877 --- /dev/null +++ b/.github/workflows/Sitemap.yml @@ -0,0 +1,29 @@ +name: Generate xml sitemap + +on: + push: + branches: + - gh-pages + +jobs: + sitemap_job: + runs-on: ubuntu-latest + name: Generate a sitemap + + steps: + - name: Checkout the repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Generate the sitemap + id: sitemap + uses: cicirello/generate-sitemap@v1 + with: + base-url-path: https://nonlinearoscillations.github.io/HarmonicBalance.jl/ + + - name: Output stats + run: | + echo "sitemap-path = ${{ steps.sitemap.outputs.sitemap-path }}" + echo "url-count = ${{ steps.sitemap.outputs.url-count }}" + echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"