Skip to content

Commit

Permalink
Creacion de actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPotatoXx committed Jan 21, 2024
1 parent 563e23e commit a564876
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and Deploy

on:
push:
branches: [ main ]

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: '21'

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Deploy to Server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_PORT }}
source: "dist/*"
target: ${{ secrets.SERVER_TARGET_PATH }}

0 comments on commit a564876

Please sign in to comment.