Skip to content

Update webpack.yml

Update webpack.yml #7

Workflow file for this run

name: NodeJS with Webpack
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x]
steps:
- name: Deploy
uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.SSH_HOST }}
key: ${{ secrets.SSH_KEY }}
username: ${{ secrets.SSH_USERNAME }}
script: |
cd ~
git clone https://github.com/abdulwahid211/portfolio.git
cd portfolio
npm install
echo "Deployment successful to digital ocean"