Skip to content

Commit df27b4c

Browse files
authored
Create sitemap.yaml
1 parent 9fa6259 commit df27b4c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/sitemap.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Generate Sitemap
2+
3+
on:
4+
push:
5+
branches:
6+
- main # or master if your repo uses master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v3
15+
16+
- name: Generate sitemap
17+
uses: cicirello/generate-sitemap@v1
18+
with:
19+
base-url-path: https://mlcom.github.io
20+
include-html: true
21+
22+
- name: Commit and push sitemap
23+
run: |
24+
git config user.name "github-actions[bot]"
25+
git config user.email "github-actions[bot]@users.noreply.github.com"
26+
git add sitemap.xml
27+
git commit -m "Update sitemap"
28+
git push

0 commit comments

Comments
 (0)