Skip to content

Commit 3fe3a87

Browse files
authored
ci: generate sitemap using static-sitemap-cli
1 parent 993f056 commit 3fe3a87

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
uses: peaceiris/actions-mdbook@v1
2020
with:
2121
mdbook-version: latest
22+
23+
- name: Install static-sitemap-cli
24+
run: npm install static-sitemap-cli
2225

2326
# FIXME: Keep this up to date
2427
- name: Install mdbook-linkcheck
@@ -49,6 +52,11 @@ jobs:
4952
mv book/"$lang"/custom book/custom/"$lang"
5053
done
5154
55+
- name: Generate sitemap
56+
run: |
57+
cd gb-asm-tutorial/book/custom/
58+
npx sscli --no-clean --base https://gbdev.io/gb-asm-tutorial
59+
5260
- name: Store final build
5361
uses: actions/upload-artifact@v2
5462
with:

0 commit comments

Comments
 (0)