Skip to content

Commit

Permalink
Create deployment.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Ally Elvis Nzeyimana <allyelvis6569@gmail.com>
  • Loading branch information
allyelvis authored Dec 20, 2024
1 parent a796eb4 commit 4792225
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deployment

on:
push:
branches:
- main
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Build project
run: npm run build

- name: Deploy to server
run: |
ssh user@your-server.com 'mkdir -p /var/www/your-project'
scp -r * user@your-server.com:/var/www/your-project

0 comments on commit 4792225

Please # to comment.