🚀 agregar conjuro de restaurar respaldo #32
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: 🦅 Actualizar página por SSH | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.DOMINIO }} | |
username: ${{ secrets.USUARIO }} | |
key: ${{ secrets.LLAVE_SSH }} | |
script: | | |
export NVM_DIR=~/.nvm | |
source ~/.nvm/nvm.sh | |
cd ${{ secrets.RUTA }} | |
git pull origin main | |
yarn install --immutable | |
yarn build | |
yarn reiniciar |