-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (33 loc) · 983 Bytes
/
despliegue.yml
File metadata and controls
39 lines (33 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: 🦍 Despliegue
on:
push:
branches: [main]
jobs:
build:
name: 🐘 Desplegar
runs-on: ubuntu-latest
steps:
- name: 🐯 Obtener código del repositorio
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🐜 Activar Corepack
run: corepack enable
- name: 🐝 Usar Node
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'yarn'
- name: 🦒 Instalar dependencias y hacer build
run: |
yarn install --immutable
yarn build
- name: 🦅 Enviar por SFTP
uses: wangyucode/sftp-upload-action@v2.0.2
with:
host: ${{ secrets.DOMINIO_IMAGINA }}
username: ${{ secrets.USUARIO_IMAGINA }}
password: ${{ secrets.CLAVE_IMAGINA }}
localDir: 'aplicaciones/www/publico'
remoteDir: '/srv/www/wordpress/especiales/siya/'
removeExtraFilesOnServer: true