Created
February 12, 2026 19:43
-
-
Save rmsaitam/05c271dde5a72b9824d1c6d466f1b999 to your computer and use it in GitHub Desktop.
Deploy site no GitHub Actions
This file contains hidden or 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 via FTP | |
| on: | |
| push: | |
| branches: | |
| - main # O deploy ocorre sempre que você enviar para a branch main | |
| jobs: | |
| web-deploy: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get latest code | |
| uses: actions/checkout@v4 # Baixa seu código no servidor do GitHub | |
| - name: Sync files | |
| uses: SamKirkland/FTP-Deploy-Action@v4.3.4 # Action recomendada no Marketplace | |
| with: | |
| server: ${{ secrets.FTP_SERVER }} | |
| username: ${{ secrets.FTP_USERNAME }} | |
| password: ${{ secrets.FTP_PASSWORD }} | |
| server-dir: public_html/ # Diretório de destino no seu servidor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment