diff --git a/.github/workflows/apidocs.yaml b/.github/workflows/apidocs.yaml index 60a6e29d..3f44d9a6 100644 --- a/.github/workflows/apidocs.yaml +++ b/.github/workflows/apidocs.yaml @@ -6,13 +6,13 @@ on: - published # Allow running this workflow manually from the Actions tab workflow_dispatch: + pull_request: jobs: deploy: permissions: pages: write # to deploy to Pages - id-token: write # to verify the deployment originates from an appropriate source environment: name: github-pages @@ -46,4 +46,5 @@ jobs: - name: Deploy to GitHub Pages id: deployment + if: ${{ github.repository == 'modelcontextprotocol/kotlin-sdk' && ((github.event_name == 'release' && github.event.action == 'published') || github.event_name == 'workflow_dispatch') }} uses: actions/deploy-pages@v4