File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 22name : Deploy Hugo site to Pages
33
44on :
5+ pull_request :
6+ types :
7+ - edited
8+ - opened
9+ - reopened
510 # Runs on pushes targeting the default branch
611 push :
712 branches :
8- - main
13+ - master
914
1015 # Allows you to run this workflow manually from the Actions tab
1116 workflow_dispatch :
5055 id : pages
5156 uses : actions/configure-pages@v3
5257 - name : Install Node.js dependencies
53- run : " [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
58+ run : |
59+ [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true
5460 - name : Build with Hugo
5561 env :
5662 # For maximum backward compatibility with Hugo modules
6874
6975 # Deployment job
7076 deploy :
77+ if : ${{ github.event.pull_request.merged }}
7178 environment :
7279 name : github-pages
7380 url : ${{ steps.deployment.outputs.page_url }}
You can’t perform that action at this time.
0 commit comments