Skip to content

Commit

Permalink
Create main_back.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Barakuda91 authored Apr 20, 2024
1 parent f17d90b commit 157a8bd
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main_back.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18.x'

- name: Install dependencies
run: npm install

- name: Build app
run: npm run build

- name: Deploy
uses: easingthemes/ssh-deploy@v2
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
REMOTE_HOST: ${{ secrets.SERVER_IP }}
REMOTE_USER: ${{ secrets.SERVER_USERNAME }}
REMOTE_PORT: ${{ secrets.SERVER_SSH_PORT }}
SOURCE: backend
TARGET: /var/www/duoasia

0 comments on commit 157a8bd

Please sign in to comment.