📝 actualizar dependencias y borrador de instrucciones #111
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: SamKirkland/[email protected] | |
with: | |
server: ${{ secrets.DOMINIO }} | |
username: ${{ secrets.USUARIO }} | |
password: ${{ secrets.CLAVE }} | |
local-dir: './publico/' | |
dangerous-clean-slate: true |