mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-03-11 22:43:34 -05:00
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:
8
.github/workflows/deploy-book.yml
vendored
8
.github/workflows/deploy-book.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user