name: Deploy Nightly Docs on: push: branches: - master - main jobs: deploy: name: Build & Deploy runs-on: ubuntu-latest permissions: contents: write steps: - name: Clone Repo uses: actions/checkout@v4 - name: Set up cargo cache uses: Swatinem/rust-cache@v2 with: prefix-key: 'v0-docs' - name: cargo doc run: cargo doc --no-deps --workspace - name: upload artifacts uses: actions/upload-pages-artifact@v3 - name: Deploy uses: JamesIves/github-pages-deploy-action@v4.5.0 with: branch: gh-pages-docs folder: target/doc #target-folder: docs #repository-name: