Update deploy.yml #6
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: 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 |