Fix issue viewing workflow image in dark mode #150
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: | |
- main | |
env: | |
CNAME: docs.clamav.net | |
jobs: | |
pages: | |
name: GitHub Pages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Install Rust (rustup) | |
run: rustup update stable --no-self-update && rustup default stable | |
- name: Install mdBook | |
run: | | |
cargo install mdbook | |
cargo install --git https://github.com/micahsnyder/mdbook-sitemap-generator.git --branch rename-urls-url | |
- name: Build book | |
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 }} | |
run: | | |
touch book/.nojekyll | |
cp googled62299e9391332c4.html book/googled62299e9391332c4.html | |
echo ${{ env.CNAME }} > book/CNAME | |
rustc deploy.rs -o /tmp/deploy | |
cd book | |
/tmp/deploy |