mirror of
https://github.com/bitwarden/help
synced 2025-12-11 13:53:26 +00:00
only build on push
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -1,6 +1,6 @@
|
|||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
run: gem install bundler jekyll
|
run: gem install bundler jekyll
|
||||||
|
|
||||||
- name: Set up git credentials
|
- name: Set up git credentials
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
env:
|
env:
|
||||||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
@@ -46,9 +46,9 @@ jobs:
|
|||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: Build site
|
- 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
|
run: npm run build
|
||||||
|
|
||||||
- name: Build site and deploy to gh-pages
|
- 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
|
run: npm run deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user