fix: Update GitHub Actions workflow to trigger on dev branch

- Changed trigger from main to dev branch (repository default)
- Updated deploy condition to check for dev branch
- Ensures workflow runs on correct branch for this repository
This commit is contained in:
Vijay Janapa Reddi
2025-07-15 13:09:53 -04:00
parent 9ee4ed8b53
commit d2dcb60b98

View File

@@ -3,13 +3,13 @@ name: Deploy TinyTorch Jupyter Book
# Trigger the workflow on push to main branch or manual dispatch
on:
push:
branches: [ main ]
branches: [ dev ]
paths:
- 'book/**'
- 'modules/source/**'
- '.github/workflows/deploy-book.yml'
pull_request:
branches: [ main ]
branches: [ dev ]
paths:
- 'book/**'
- 'modules/source/**'
@@ -60,8 +60,8 @@ jobs:
path: book/tinytorch-course/_build/html
deploy:
# Only deploy on main branch pushes (not PRs)
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
# Only deploy on dev branch pushes (not PRs)
if: github.ref == 'refs/heads/dev' && github.event_name == 'push'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}