Skip to content

Commit

Permalink
Only update book on push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
phklive committed Mar 6, 2025
1 parent a4d0f4c commit 6c12f3b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: book

on:
push:
branches: [main, next]
branches: [main]
pull_request:
paths:
- 'docs/src/SUMMARY.md'
Expand Down Expand Up @@ -52,7 +52,6 @@ jobs:
name: deploy mdbook
runs-on: ubuntu-latest
needs: check-files
# Only run deployment on push to main/next branches, not on PRs
if: github.event_name == 'push' || github.event_name == 'workflow_run'
permissions:
contents: write
Expand Down

0 comments on commit 6c12f3b

Please sign in to comment.