Skip to content

Update build-test.yml #4

Update build-test.yml

Update build-test.yml #4

Workflow file for this run

name: Build and Merge to Master
on:
push:
branches:
- master
jobs:
build_and_merge:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Dependencies
run: yarn install
- name: Build React App
run: yarn build
- name: Archive Production Build
uses: actions/upload-artifact@v2
with:
name: build
path: build
- name: Merge to Master
if: success() # Only run if previous steps were successful
run: |
git config user.name "GitHub Actions"
git config user.email "<>"
git fetch
git checkout master
git merge --no-ff $GITHUB_SHA
git push origin master