Skip to content

Commit

Permalink
Create sitemap.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler authored Feb 23, 2024
1 parent 680299b commit 42ebe90
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/sitemap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Generate API sitemap

on:
push:
branches: [ master ]

jobs:
sitemap_job:
runs-on: ubuntu-latest
name: Generate a sitemap

steps:
- name: Checkout the repo
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Generate the sitemap
id: sitemap
uses: cicirello/generate-sitemap@v1
with:
base-url-path: https://mmrl.dergoogler.com/?module=
path-to-root: modules
sitemap-format: xml

- 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 }}"
- name: Setup Git
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Commit Changes
run: |
git add .
git commit -m "Update Sitemap" || true
git push || true

0 comments on commit 42ebe90

Please sign in to comment.