From a90749eb50c28d3d7a0386b8ff0654a288d7b109 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 20 Feb 2020 14:34:02 -0500 Subject: [PATCH] only build on push --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ed573e70..11c2c8e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: Build -on: [push, pull_request] +on: push jobs: build: @@ -22,7 +22,7 @@ jobs: run: gem install bundler jekyll - name: Set up git credentials - if: github.event_name == 'push' && github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' env: ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} run: | @@ -46,9 +46,9 @@ jobs: run: npm install - name: Build site - if: github.event_name != 'push' || (github.event_name == 'push' && github.ref != 'refs/heads/master') + if: github.ref != 'refs/heads/master' run: npm run build - name: Build site and deploy to gh-pages - if: github.event_name == 'push' && github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' run: npm run deploy