-
Notifications
You must be signed in to change notification settings - Fork 18
32 lines (27 loc) · 810 Bytes
/
Sitemap.yml
File metadata and controls
32 lines (27 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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@v3
with:
fetch-depth: 0
- name: Generate the sitemap
uses: cicirello/generate-sitemap@v1
with:
base-url-path: https://nonlinearoscillations.github.io/HarmonicBalance.jl/
- name: Commit and push
run: |
if [[ `git status --porcelain sitemap.xml` ]]; then
git config --global user.name 'github-actions'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add sitemap.xml
git commit -m "Automated sitemap update" sitemap.xml
git push
fi