Skip to content

Commit 13cffcf

Browse files
jakedahnclaude
andcommitted
chore: Enable GitHub Actions for migrate-tutorials branch and PRs
- Add migrate-tutorials branch to workflow triggers - Enable workflow for pull requests (build-only) - Restrict deployment to push events on main and migrate-tutorials - PRs will build but not deploy (validation only) This allows testing the deployment from the migration branch before merging. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0418f5c commit 13cffcf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Deploy MyST Documentation
22

33
on:
44
push:
5+
branches: [main, migrate-tutorials]
6+
paths:
7+
- 'tutorials/**'
8+
- '.github/workflows/deploy-docs.yml'
9+
pull_request:
510
branches: [main]
611
paths:
712
- 'tutorials/**'
@@ -52,6 +57,8 @@ jobs:
5257
path: 'tutorials/_build/html'
5358

5459
deploy:
60+
# Only deploy from main and migrate-tutorials branches, not from PRs
61+
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/migrate-tutorials')
5562
environment:
5663
name: github-pages
5764
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)