Skip to content

Commit

Permalink
Update build e deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
oficialjfdev committed Nov 11, 2024
1 parent 31d1603 commit c6d429c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build-deploy-ftp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ jobs:
run: npm run build --if-present # Executa o build do Angular

- name: Test FTP Connection (Debug)
run: |
echo "Testing FTP Connection..."
echo "FTP connection test" > test.txt # Cria o arquivo de teste
curl --ftp-create-dirs -u ${{ secrets.FTP_USERNAME }}:${{ secrets.FTP_PASSWORD }} "ftp://${{ secrets.FTP_HOST }}/test.txt" -T test.txt || echo "FTP connection failed"
rm test.txt # Remove o arquivo de teste após a verificação
run: |
echo "Testing FTP Connection..."
echo "FTP connection test" > test.txt # Cria o arquivo de teste
curl --ftp-create-dirs -u ${{ secrets.FTP_USERNAME }}:${{ secrets.FTP_PASSWORD }} "ftp://${{ secrets.FTP_HOST }}/test.txt" -T test.txt || echo "FTP connection failed"
rm test.txt # Remove o arquivo de teste após a verificação
- name: FTP Deploy Locaweb
uses: locaweb/[email protected]
with:
host: ${{ secrets.FTP_HOST }}
user: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
localDir: "dist/browser"
host: ${{ secrets.FTP_HOST }} # Usando a variável de ambiente do FTP_HOST
user: ${{ secrets.FTP_USERNAME }} # Usando a variável de ambiente do FTP_USERNAME
password: ${{ secrets.FTP_PASSWORD }} # Usando a variável de ambiente do FTP_PASSWORD
localDir: "docs/browser" # Ajustado para o localDir correto

0 comments on commit c6d429c

Please sign in to comment.