Skip to content

Commit 2e53a0f

Browse files
authored
Add "Sitemap Generator" action
1 parent 0d59e71 commit 2e53a0f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/sitemap.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Sitemap Generator
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
9+
jobs:
10+
generate_sitemap:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v5
15+
with:
16+
fetch-depth: 0
17+
- name: Generate Sitemap
18+
uses: cicirello/generate-sitemap@v1
19+
with:
20+
base-url-path: https://rust-wiiu.github.io/
21+
sitemap-format: xml
22+
output-path: sitemap.xml
23+
- name: Commit and push
24+
uses: actions/checkout@v5
25+
run: |
26+
git config user.name "github-actions[bot]"
27+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
28+
git add sitemap.xml
29+
git commit -m "Generate sitemap.xml"
30+
git push

0 commit comments

Comments
 (0)