Skip to content

Commit 65b2281

Browse files
committed
generate a sitemap
1 parent d34c6c4 commit 65b2281

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
- uses: actions-rs/toolchain@v1
1616
with:
1717
toolchain: stable
18+
- name: Install static-sitemap-cli
19+
run: npm install static-sitemap-cli
1820
- name: Install mdbook
1921
uses: baptiste0928/cargo-install@v1
2022
with:
@@ -23,8 +25,13 @@ jobs:
2325
- name: Build book
2426
run: |
2527
mdbook build
28+
- name: Generate sitemap
29+
run: |
30+
cd book
31+
npx sscli --base https://lifetime-variance.sunshowers.io
2632
- name: Deploy
2733
uses: JamesIves/github-pages-deploy-action@releases/v4
2834
with:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2936
branch: gh-pages
3037
folder: book

0 commit comments

Comments
 (0)