name: Upload documentation on: push: branches: [master] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Install Rust run: | rustup set profile minimal rustup install nightly rustup override set nightly - name: Build Docs run: cargo doc --workspace --all-features --no-deps - name: Tweak HTML run: echo '' > target/doc/index.html - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@v4 with: folder: target/doc