Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to '.github/workflows/rustdoc.yaml')
-rw-r--r--.github/workflows/rustdoc.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/rustdoc.yaml b/.github/workflows/rustdoc.yaml
index 03fd083175..c5588a29f6 100644
--- a/.github/workflows/rustdoc.yaml
+++ b/.github/workflows/rustdoc.yaml
@@ -3,6 +3,8 @@ on:
push:
branches:
- master
+ pull_request:
+ merge_group:
env:
CARGO_INCREMENTAL: 0
@@ -28,6 +30,7 @@ jobs:
run: cargo doc --all --no-deps --document-private-items
- name: Deploy Docs
+ if: github.event_name == 'push' && github.repository == 'rust-lang/rust-analyzer' && github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}