diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index e7ca1a6f..7aaee81c 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -73,7 +73,7 @@ jobs:
# Deploy to production on main branch
deploy:
- if: github.ref == 'refs/heads/main'
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
diff --git a/README.md b/README.md
index a0a672fa..056752ff 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ Show proof for every AI citation.
-[](https://github.com/DeepCitation/deepcitation/actions/workflows/ci.yml)
+[](https://github.com/DeepCitation/deepcitation/actions/workflows/ci.yml)
[](https://opensource.org/licenses/MIT)
[](https://www.npmjs.com/package/deepcitation)
[](https://bundlephobia.com/package/deepcitation)