We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d29d558 commit fefd468Copy full SHA for fefd468
.github/workflows/11ty.yml renamed to .github/workflows/build-gh-pages.yml
@@ -1,10 +1,10 @@
1
# Sample workflow for building and deploying an Eleventy site to GitHub Pages
2
-name: Deploy Eleventy with GitHub Pages dependencies preinstalled
+name: Build & Deploy Eleventy with GitHub Pages dependencies preinstalled
3
4
on:
5
# Runs on pushes targeting the default branch
6
push:
7
- branches: ["main"]
+ pull_request:
8
9
# Allows you to run this workflow manually from the Actions tab
10
workflow_dispatch:
@@ -45,6 +45,7 @@ jobs:
45
46
deploy-ghpages:
47
name: Deploy to github pages
48
+ if: github.event_name == 'push' && github.ref_name == 'main'
49
environment:
50
name: github-pages
51
url: ${{ steps.deployment.outputs.page_url }}
0 commit comments