Skip to content

New community project go-clamav #148

New community project go-clamav

New community project go-clamav #148

Workflow file for this run

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