Skip to content

Update deploy.yml

Update deploy.yml #4

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 to Server
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
source: dist/
target: /var/www/hexle/