Update build.yml to trigger on PRs
This commit is contained in:
parent
90b02b03f0
commit
3596f18066
1 changed files with 8 additions and 1 deletions
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
|
|
@ -2,9 +2,16 @@ name: Build Eleventy
|
|||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- '/maintenance/**'
|
||||
- '/README.md'
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '/maintenance/**'
|
||||
- '/README.md'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
|
@ -34,4 +41,4 @@ jobs:
|
|||
uses: peaceiris/actions-gh-pages@v4
|
||||
with:
|
||||
publish_dir: ./docs
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue