From 64e751d166f53e648d0cbe31ccd681ac1e43346a Mon Sep 17 00:00:00 2001 From: Micah Snyder Date: Tue, 16 Jan 2024 11:04:10 -0500 Subject: [PATCH] GitHub Actions: Generate sitemap --- .github/workflows/deploy.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9323c3b..d2813c5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,9 +16,11 @@ jobs: - name: Install Rust (rustup) run: rustup update stable --no-self-update && rustup default stable - name: Install mdBook - run: cargo install mdbook + run: cargo install mdbook mdbook-sitemap-generator - name: Build book - run: mdbook build . + run: | + mdbook build . + mdbook-sitemap-generator -d docs.clamav.net -o book/sitemap.xml - name: Deploy to GitHub env: GITHUB_DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}