Update webpack.yml #7
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: 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" |