Add className for element <h2> in singUp directory #42
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: Check for Changes in frontEnd folder | |
run: | | |
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^frontEnd/' &> /dev/null; then | |
echo "Changes detected in the frontEnd folder. Proceeding with deployment." | |
else | |
echo "No changes in the frontEnd folder. Skipping deployment." | |
fi | |
- 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 configuration | |
run: git config --global user.email rajpunjabi47@yahoo.in && git config --global user.name "Raj Punjabi" | |
- name: Install Dependencies | |
run: | | |
cd frontEnd | |
npm install --save gh-pages | |
- name: build application | |
run: | | |
cd frontEnd | |
npm run build | |
- name: Run Deploy Script | |
run: | | |
cd frontEnd | |
npm run deploy |