Skip to content

Update deploy.yml

Update deploy.yml #6

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: garygrossgarten/github-action-scp@release
with:
local: test
remote: scp/directory
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}