Skip to content

Update deploy.yml

Update deploy.yml #10

Workflow file for this run

name: Deploy to Server
on:
push:
branches:
- main # Adjust this branch if needed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Dependencies and Build
run: |
npm install
npm run build
- name: copy file via ssh password
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: dist/
target: /var/www/hexle/