Skip to content

Commit fbc8117

Browse files
Merge pull request #1 from datajoint/copilot/build-deploy-datajoint-book
Add workflow_dispatch trigger to enable manual workflow execution
2 parents 1b9eef5 + c46360c commit fbc8117

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
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: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,19 @@ Every time changes are pushed to the `main` branch, a GitHub Actions workflow:
8989
2. Deploys the generated HTML to GitHub Pages
9090
3. Makes the updated book immediately available online
9191

92-
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.
92+
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/datajoint/datajoint-book/actions) in the repository. This automated CI/CD pipeline ensures that the published version always reflects the latest content in the repository.
93+
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/datajoint/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.
93105

94106
# Contributions
95107
We welcome and appreciate your contributions to this book, whether as a reviewer or as a contributor.

0 commit comments

Comments
 (0)