1
0
mirror of https://github.com/bitwarden/help synced 2025-12-06 00:03:30 +00:00

only build on push

This commit is contained in:
Kyle Spearrin
2020-02-20 14:34:02 -05:00
parent c7d3c58483
commit a90749eb50

View File

@@ -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