Merge pull request #111 from enflujo/correcciones-html #95
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Despliegue | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
name: 🐘 Desplegar | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🐯 Obtener código del repositorio | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: 🐝 Usar Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/*' | |
- name: 🦒 Instalar dependencias y hacer build | |
run: | | |
yarn install --frozen-lockfile | |
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: 'publico' | |
remoteDir: '/srv/www/wordpress/especiales/vacs/' |