Skip to content

Commit b98e587

Browse files
committed
specify branch
1 parent a5358f2 commit b98e587

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

readme.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ Create a `main.yml` file in `./github/workflows`.
1717
```yaml
1818
name: Jekyll Deploy
1919

20-
on: [push]
20+
on:
21+
push:
22+
branches:
23+
- master
2124

2225
jobs:
2326
build_and_deploy:
@@ -49,7 +52,10 @@ If you use a directory other than `_site` as the Jekyll build destination, set i
4952
```yaml
5053
name: Jekyll Deploy
5154
52-
on: [push]
55+
on:
56+
push:
57+
branches:
58+
- master
5359
5460
jobs:
5561
build_and_deploy:

0 commit comments

Comments
 (0)