diff --git a/.github/workflows/build-deploy-ftp.yml b/.github/workflows/build-deploy-ftp.yml index 3566889..28da73a 100644 --- a/.github/workflows/build-deploy-ftp.yml +++ b/.github/workflows/build-deploy-ftp.yml @@ -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/ftp-deploy@1.0.0 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