Skip to content

Commit 2e0c4f2

Browse files
committed
Update apidocs.yaml workflow to refine triggers and deployment conditions
- Remove id-token:write permission - Add repository and event-based condition for `deploy-pages` step.
1 parent 77357a1 commit 2e0c4f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/apidocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212

1313
permissions:
1414
pages: write # to deploy to Pages
15-
id-token: write # to verify the deployment originates from an appropriate source
1615

1716
environment:
1817
name: github-pages
@@ -46,4 +45,5 @@ jobs:
4645

4746
- name: Deploy to GitHub Pages
4847
id: deployment
48+
if: ${{ github.repository == 'modelcontextprotocol/kotlin-sdk' && ((github.event_name == 'release' && github.event.action == 'published') || github.event_name == 'workflow_dispatch') }}
4949
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)