Inserindo Required do Campo e-mail do Modal #33
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: Deploy to Server | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Deploy to Server | |
uses: appleboy/[email protected] | |
with: | |
host: ec2-54-207-67-252.sa-east-1.compute.amazonaws.com | |
username: ubuntu | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
port: 22 | |
script: | | |
set -e # Para parar a execução em caso de erro | |
echo "Verificando diretório atual" | |
pwd | |
ls -l | |
echo "Verificando versões de Node e NPM" | |
which node | |
which npm | |
node --version | |
npm --version | |
echo "Entrando no diretório do projeto" | |
cd /home/ubuntu/frontend/WallDreams | |
echo "Atualizando código do repositório" | |
git pull origin develop | |
echo "Instalando dependências" | |
npm install | |
echo "Rodando build" | |
npm run build | |
echo "Reiniciando serviço Nginx" | |
sudo systemctl restart nginx | |
echo "Deploy concluído com sucesso!" |