Bump webpack from 5.65.0 to 5.92.1 (#34) #40
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 dev site and deploy | |
on: | |
push: | |
branches: [ develop ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: github-pages | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Installing dependencies | |
run: npm install | |
- name: Setting up Git | |
run: | | |
git remote set-url origin https://GhostVaibhav:${{ secrets.PASS }}@github.com/GhostVaibhav/Simple.git | |
git config --global user.email "[email protected]" | |
git config --global user.name "Vaibhav Sharma" | |
- name: Writing to environment variable | |
run: | | |
touch .env | |
echo 'REACT_APP_RECAPTCHA_KEY=${{ secrets.REACT_APP_RECAPTCHA_KEY }}' >> .env | |
npm install gh-pages --save-dev | |
- name: Building and deploying the site | |
run: npm run deploy |