summaryrefslogtreecommitdiffstats
path: root/.github/workflows/document.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/document.yml')
-rw-r--r--.github/workflows/document.yml6
1 files changed, 2 insertions, 4 deletions
diff --git a/.github/workflows/document.yml b/.github/workflows/document.yml
index 09a7a4d5..230c5cb0 100644
--- a/.github/workflows/document.yml
+++ b/.github/workflows/document.yml
@@ -1,8 +1,5 @@
name: Document
-on:
- push:
- branches:
- - master
+on: [push, pull_request]
jobs:
all:
runs-on: ubuntu-20.04
@@ -31,6 +28,7 @@ jobs:
- name: Write CNAME file
run: echo 'docs.iced.rs' > ./target/doc/CNAME
- name: Publish documentation
+ if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }}