Merge pull request #1 from deepakk33/test/action-build #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build React App | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
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 # Adjust this to match your build output directory |