-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (34 loc) · 1.17 KB
/
sitemap-generation.yml
File metadata and controls
40 lines (34 loc) · 1.17 KB
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
33
34
35
36
37
38
39
40
name: Generate xml 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://www.offlineimap.org/
- 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 }}"
# TODO: fix the generate-sitemap to crawl the files as if it was the website.
# it's including inaccessible files ending in .html and not including menu links.
# - name: Commit and push
# run: |
# if [[ `git status --porcelain sitemap.xml` ]]; then
# git config --global user.name 'Chris Coleman'
# git config --global user.email 'chris001@users.noreply.github.com'
# git add sitemap.xml
# git commit -m "Automated sitemap update" sitemap.xml
# git push
# fi