Skip to content

Update deploy.yml

Update deploy.yml #6

Workflow file for this run

name: Deploy on PR Merge
on:
push:
branches:
- master
pull_request:
types:
- closed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set CI Environment Variable
run: echo "CI=false" >> $GITHUB_ENV
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Set Git User Information
run: |
git config --global user.email kwshr96626@gmail.com
git config --global user.name Kawshar Patel
- name: Install Dependencies
run: npm install
working-directory: ./new-webapp
- name: build application
run: npm run build
working-directory: ./new-webapp
- name: Run Deploy Script
run: npm run deploy
working-directory: ./new-webapp