Skip to content

Commit 5a371c8

Browse files
Enable manual workflow execution with workflow_dispatch trigger
Co-authored-by: dimitri-yatsenko <[email protected]>
1 parent 37f0524 commit 5a371c8

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: Build and Deploy DataJoint Book
22

3-
# Run on pushes to the main branch and on pull requests
3+
# Run on pushes to the main branch, on pull requests, and manual triggers
44
on:
55
push:
66
# Runs on pushes targeting the default branch
77
branches: [main]
88
pull_request:
99
branches: [main]
10+
workflow_dispatch:
11+
# Allows manual triggering from the Actions tab
1012

1113
env:
1214
# `BASE_URL` determines the website served from, including CSS and JS assets

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,18 @@ Every time changes are pushed to the `main` branch, a GitHub Actions workflow:
9191

9292
You can monitor the build and deployment status via the badge at the top of this README or by viewing the [Actions tab](https://github.com/dimitri-yatsenko/datajoint-book/actions) in the repository. This automated CI/CD pipeline ensures that the published version always reflects the latest content in the repository.
9393

94+
### Manual Workflow Execution
95+
96+
You can also manually trigger the "Build and Deploy DataJoint Book" workflow from the GitHub Actions interface:
97+
98+
1. Navigate to the [Actions tab](https://github.com/dimitri-yatsenko/datajoint-book/actions) in the repository
99+
2. Select the "Build and Deploy DataJoint Book" workflow from the left sidebar
100+
3. Click the "Run workflow" button (on the right side)
101+
4. Select the branch you want to run the workflow on (typically `main`)
102+
5. Click "Run workflow" to start the build and deployment process
103+
104+
This is useful when you want to rebuild and redeploy the book without making a new commit, or when testing workflow changes on a feature branch.
105+
94106
# Contributions
95107
We welcome and appreciate your contributions to this book, whether as a reviewer or as a contributor.
96108
All contributions will be gratefully acknowledged.

0 commit comments

Comments
 (0)