Skip to content

Merge pull request #82 from rishabhpathak359/dev #89

Merge pull request #82 from rishabhpathak359/dev

Merge pull request #82 from rishabhpathak359/dev #89

Workflow file for this run

name: Deploy
on:
push:
branches:
- dev
env:
CI: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Build
run: npm run build --force
env:
CI: false
- name: Generate PEM
run: echo "$PEM" >> tcp.pem && chmod 400 tcp.pem
env:
PEM: ${{secrets.PEM}}
- name: Doing the magic now
run: sudo scp -o StrictHostKeyChecking=no -i tcp.pem -r build/* [email protected]:/home/CodeUtsava7.0/build
- name: Doing the magic now 2
run: sudo scp -o StrictHostKeyChecking=no -i tcp.pem -r build/* [email protected]:/home/CodeUtsava7.0/build
- name: LIVE!!!
run: echo "Site is Live!🚀🚀🚀"