mirror of
https://github.com/LucasKalil-Programador/world-2026-hub.git
synced 2026-07-04 17:41:28 -03:00
ci: add GitHub Actions FTP deploy to Hostinger
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
80c0efa508
commit
7d6113be85
2 changed files with 54 additions and 0 deletions
47
.github/workflows/deploy.yml
vendored
Normal file
47
.github/workflows/deploy.yml
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
name: Deploy to Hostinger (FTP)
|
||||||
|
|
||||||
|
# Faz deploy do site estático para a Hostinger via FTP sempre que
|
||||||
|
# houver push na branch master (ou disparo manual pela aba Actions).
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ftp-deploy
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Deploy via FTP
|
||||||
|
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
|
||||||
|
with:
|
||||||
|
server: ${{ secrets.FTP_SERVER }}
|
||||||
|
username: ${{ secrets.FTP_USERNAME }}
|
||||||
|
password: ${{ secrets.FTP_PASSWORD }}
|
||||||
|
# Protocolo: use "ftps" (recomendado pela Hostinger). Se a sua
|
||||||
|
# conta só aceitar FTP simples, troque para "ftp".
|
||||||
|
protocol: ftps
|
||||||
|
port: 21
|
||||||
|
# Pasta de origem no repositório (raiz do projeto).
|
||||||
|
local-dir: ./
|
||||||
|
# Pasta de destino na Hostinger. Domínio principal = public_html/.
|
||||||
|
# Para subdomínio/addon use o caminho correspondente, p.ex.
|
||||||
|
# public_html/world-2026/ — sempre terminando com "/".
|
||||||
|
server-dir: public_html/
|
||||||
|
# Não enviar arquivos de desenvolvimento/documentação para o site.
|
||||||
|
exclude: |
|
||||||
|
**/.git*
|
||||||
|
**/.git*/**
|
||||||
|
**/.github/**
|
||||||
|
**/.agents/**
|
||||||
|
README.md
|
||||||
|
how-update.md
|
||||||
|
how-refresh-data.md
|
||||||
|
world-cup-2026-hub-spec-en.md
|
||||||
|
complement-spec-worldcup2026-en.md
|
||||||
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# OS / editor
|
||||||
|
Thumbs.db
|
||||||
|
Desktop.ini
|
||||||
|
.DS_Store
|
||||||
|
*.swp
|
||||||
|
.vscode/
|
||||||
|
.idea/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue