Skip to content

Commit fd3164d

Browse files
committed
Deploy docs only on main branch merge
1 parent 51317ab commit fd3164d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci_windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
platform: [windows-latest]
14-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
14+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1515

1616
runs-on: ${{ matrix.platform }}
1717

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ jobs:
6464
deploy:
6565
# This job depends on the 'build' job completing successfully
6666
needs: build
67+
# Only deploy when pushing to main branch, not on pull requests
68+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
6769
permissions:
6870
pages: write
6971
id-token: write

0 commit comments

Comments
 (0)