-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31d1603
commit c6d429c
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |