despliegue #278
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] | |
repository_dispatch: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: 🐘 Desplegar | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🐯 Obtener código del repositorio | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.DOMINIO_AZURE }} | |
username: ${{ secrets.USUARIO_AZURE }} | |
key: ${{ secrets.LLAVE_SSH }} | |
script: | | |
export NVM_DIR=~/.nvm | |
source ~/.nvm/nvm.sh | |
cd ${{ secrets.RUTA }} | |
git pull origin main | |
yarn | |
yarn build |