ci: Build docs for PRs

This commit is contained in:
Jonas Platte 2021-07-02 19:33:28 +02:00
parent 0da5151c94
commit 082b561178
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -3,6 +3,8 @@ name: Documentation
on:
push:
branches: [next]
pull_request:
branches: [main, next]
jobs:
build-deploy:
@ -26,7 +28,8 @@ jobs:
command: doc
args: --no-deps --workspace --exclude ruma-api-macros --exclude ruma-events-macros --exclude ruma-identifiers-macros --exclude ruma-identifiers-validation --exclude xtask --all-features -Zrustdoc-map
- name: Deploy to docs branch
uses: JamesIves/github-pages-deploy-action@4.1.0
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: docs
folder: target/doc