{"id":38435,"date":"2026-02-13T14:49:05","date_gmt":"2026-02-13T17:49:05","guid":{"rendered":"https:\/\/www.locaweb.com.br\/ajuda\/?post_type=ht_kb&#038;p=38435"},"modified":"2026-02-13T14:49:05","modified_gmt":"2026-02-13T17:49:05","slug":"github-actions-ftp-hospedagem-compartilhada-locaweb","status":"publish","type":"ht_kb","link":"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/github-actions-ftp-hospedagem-compartilhada-locaweb\/","title":{"rendered":"GitHub Actions + FTP Hospedagem compartilhada Locaweb"},"content":{"rendered":"    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Informa\u00e7\u00e3o!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<b>O GitHub Actions<\/b><span style=\"font-weight: 400;\"> \u00e9 um servi\u00e7o de automa\u00e7\u00e3o do GitHub que permite criar fluxos de trabalho autom\u00e1ticos para seu c\u00f3digo. Funciona assim: voc\u00ea define regras para que certas a\u00e7\u00f5es aconte\u00e7am sozinhas quando algo espec\u00edfico ocorre no seu reposit\u00f3rio, como enviar c\u00f3digo novo ou fazer uma atualiza\u00e7\u00e3o.<\/span>    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p><b>Na pr\u00e1tica,<\/b><span style=\"font-weight: 400;\"> tudo o que voc\u00ea adiciona ao reposit\u00f3rio online do GitHub, o Actions automaticamente importa para o remoteDir (diret\u00f3rio remoto) que voc\u00ea configurou, sem precisar fazer upload manual.<\/span><\/p>\n<p><b>Aqui na Locaweb<\/b> <b>\u00e9 poss\u00edvel<\/b><span style=\"font-weight: 400;\"> fazer a integra\u00e7\u00e3o de reposit\u00f3rios online no GitHub com o ambiente FTP do seu site em produ\u00e7\u00e3o. Com isso, voc\u00ea mant\u00e9m seu projeto online no GitHub, e qualquer manuten\u00e7\u00e3o de c\u00f3digo feita por voc\u00ea ou sua equipe (novos commits), automaticamente \u00e9 colocada em produ\u00e7\u00e3o (deploy) no servidor onde seu site est\u00e1 hospedado.<\/span><\/p>\n<h2><b>Passo 1: Criando seu reposit\u00f3rio online no GitHub<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">\u2757 <\/span><i><span style=\"font-weight: 400;\">Se voc\u00ea j\u00e1 possui um reposit\u00f3rio existente de seu projeto, pule para o Passo 2 deste artigo.<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">Primeiramente, \u00e9 preciso ter um reposit\u00f3rio do seu projeto existente no GitHub. Nele configuramos o <\/span><b>Workflow<\/b><span style=\"font-weight: 400;\"> e as <\/span><b>secrets (vari\u00e1veis de ambiente)<\/b><span style=\"font-weight: 400;\"> que armazenam os dados sens\u00edveis de conex\u00e3o ao ambiente FTP da sua hospedagem aqui na Locaweb.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Para criar um novo reposit\u00f3rio dentro do GitHub, na p\u00e1gina inicial, clicaremos no bot\u00e3o com um sinal de \u201c+\u201d no canto superior direito, e em seguida, clicaremos em \u201cNovo reposit\u00f3rio\u201d:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38437\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-1.webp\" alt=\"\" width=\"1906\" height=\"941\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-1.webp 1906w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-1-300x148.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-1-1024x506.webp 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-1-768x379.webp 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-1-50x25.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-1-1536x758.webp 1536w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-1-60x30.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-1-100x49.webp 100w\" sizes=\"auto, (max-width: 1906px) 100vw, 1906px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Em seguida, preencha as informa\u00e7\u00f5es do seu reposit\u00f3rio online no GitHub, configure de acordo com o seu projeto e crie seu reposit\u00f3rio.<\/span><\/p>\n<p><b>Obs:<\/b><span style=\"font-weight: 400;\"> reposit\u00f3rios privados possuem limita\u00e7\u00f5es pelo GitHub,<\/span><a href=\"https:\/\/github.com\/orgs\/community\/discussions\/152247\"> <span style=\"font-weight: 400;\">saiba mais clicando aqui.<\/span><\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38438\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-2.webp\" alt=\"\" width=\"1901\" height=\"939\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-2.webp 1901w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-2-300x148.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-2-1024x506.webp 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-2-768x379.webp 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-2-50x25.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-2-1536x759.webp 1536w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-2-60x30.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/git-criacao-repositorio-2-100x49.webp 100w\" sizes=\"auto, (max-width: 1901px) 100vw, 1901px\" \/><\/p>\n<h2><b>Passo 2: Configurando Secrets no seu reposit\u00f3rio online no GitHub<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Para que o GitHub Actions funcione, precisamos definir as credenciais de acesso ao ambiente de FTP da sua hospedagem de forma segura, para que o Workflow as utilize com seguran\u00e7a no momento em que realizar a integra\u00e7\u00e3o com o FTP.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Isso \u00e9 feito atrav\u00e9s das secrets (vari\u00e1veis de ambiente), que se encontra nas configura\u00e7\u00f5es do seu reposit\u00f3rio:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38439\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-1.webp\" alt=\"\" width=\"1916\" height=\"943\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-1.webp 1916w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-1-300x148.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-1-1024x504.webp 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-1-768x378.webp 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-1-50x25.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-1-1536x756.webp 1536w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-1-60x30.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-1-100x49.webp 100w\" sizes=\"auto, (max-width: 1916px) 100vw, 1916px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Ao acessar \u201cSecrets and Variables\u201d, configuraremos tr\u00eas credenciais de acesso ao FTP atrav\u00e9s do \u201cActions\u201d e em \u201cNew repository secrets\u201d:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38440\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-2.webp\" alt=\"\" width=\"1894\" height=\"934\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-2.webp 1894w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-2-300x148.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-2-1024x505.webp 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-2-768x379.webp 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-2-50x25.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-2-1536x757.webp 1536w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-2-60x30.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-secrets-repositorio-2-100x49.webp 100w\" sizes=\"auto, (max-width: 1894px) 100vw, 1894px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Iremos configurar tr\u00eas secrets:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>HOST:<\/b><span style=\"font-weight: 400;\"> Endere\u00e7o do servidor FTP, pode ser o IP da sua hospedagem ou o endere\u00e7o fornecido no menu de \u201cArquivos e FTP\u201d da sua Hospedagem.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>USER:<\/b><span style=\"font-weight: 400;\"> Usu\u00e1rio de acesso FTP, tamb\u00e9m \u00e9 fornecido no menu &#8220;Arquivos e FTP&#8221; da sua Hospedagem<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>PASS:<\/b><span style=\"font-weight: 400;\"> Senha de acesso ao FTP, caso n\u00e3o se recorde, \u00e9 poss\u00edvel alter\u00e1-la no menu \u201cArquivos e FTP\u201d da sua Hospedagem.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Para acessar o menu \u201cArquivos e FTP\u201d da sua Hospedagem, acesse seu painel de hospedagem pelo link:<\/span><a href=\"https:\/\/painelhospedagem.locaweb.com.br\/\"> <span style=\"font-weight: 400;\">https:\/\/painelhospedagem.locaweb.com.br\/<\/span><\/a><span style=\"font-weight: 400;\"> procure pelo dom\u00ednio do seu site e clique em \u201cAdministrar\u201d, bot\u00e3o que se encontra logo \u00e0 direita:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38441\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-1-1.webp\" alt=\"\" width=\"1917\" height=\"884\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-1-1.webp 1917w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-1-1-300x138.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-1-1-1024x472.webp 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-1-1-768x354.webp 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-1-1-50x23.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-1-1-1536x708.webp 1536w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-1-1-60x28.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-1-1-100x46.webp 100w\" sizes=\"auto, (max-width: 1917px) 100vw, 1917px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">No card \u201cArquivos e FTP\u201d clique em \u201cAcessar\u201d:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38442\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-2.webp\" alt=\"\" width=\"1126\" height=\"919\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-2.webp 1126w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-2-300x245.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-2-1024x836.webp 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-2-768x627.webp 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-2-50x41.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-2-60x49.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-2-100x82.webp 100w\" sizes=\"auto, (max-width: 1126px) 100vw, 1126px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Nesta janela voc\u00ea encontra o HOST (Host do servidor), o USER (usu\u00e1rio de FTP) e o PASS (senha do FTP, caso n\u00e3o se recorde, altere pelo bot\u00e3o &#8220;Alterar senha&#8221;):<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38443\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-3.webp\" alt=\"\" width=\"1415\" height=\"900\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-3.webp 1415w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-3-300x191.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-3-1024x651.webp 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-3-768x488.webp 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-3-50x32.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-3-60x38.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/acesso-ftp-hospedagem-3-100x64.webp 100w\" sizes=\"auto, (max-width: 1415px) 100vw, 1415px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Voltando aos secrets no GitHub, iremos adicionar os respectivos valores, nomeados com letras mai\u00fasculas, exemplo:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Para HOST:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38444\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-1.webp\" alt=\"\" width=\"1584\" height=\"711\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-1.webp 1584w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-1-300x135.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-1-1024x460.webp 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-1-768x345.webp 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-1-50x22.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-1-1536x689.webp 1536w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-1-60x27.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-1-100x45.webp 100w\" sizes=\"auto, (max-width: 1584px) 100vw, 1584px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Para USER:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38445\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-2.webp\" alt=\"\" width=\"1484\" height=\"808\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-2.webp 1484w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-2-300x163.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-2-1024x558.webp 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-2-768x418.webp 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-2-50x27.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-2-60x33.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-2-100x54.webp 100w\" sizes=\"auto, (max-width: 1484px) 100vw, 1484px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38446\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-3.webp\" alt=\"\" width=\"1480\" height=\"614\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-3.webp 1480w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-3-300x124.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-3-1024x425.webp 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-3-768x319.webp 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-3-50x21.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-3-60x25.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-3-100x41.webp 100w\" sizes=\"auto, (max-width: 1480px) 100vw, 1480px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">E por fim, para PASS:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38448\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-4-1.webp\" alt=\"\" width=\"1516\" height=\"572\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-4-1.webp 1516w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-4-1-300x113.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-4-1-1024x386.webp 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-4-1-768x290.webp 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-4-1-50x19.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-4-1-60x23.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/inserindo-credenciais-ftp-secrets-4-1-100x38.webp 100w\" sizes=\"auto, (max-width: 1516px) 100vw, 1516px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Depois de configurados os tr\u00eas secrets (com as credenciais de acesso FTP corretas), seu reposit\u00f3rio est\u00e1 pronto para acessar o FTP via Workflows.<\/span><\/p>\n<h2><b>Passo 3: Configurando um Workflow no seu reposit\u00f3rio online no GitHub<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Com o reposit\u00f3rio do GitHub em m\u00e3os, podemos agora configurar o Workflow e a conex\u00e3o do Actions com o FTP da sua hospedagem.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Um <\/span><b>Workflow<\/b><span style=\"font-weight: 400;\"> \u00e9 um arquivo de instru\u00e7\u00f5es que voc\u00ea cria para dizer ao GitHub Actions exatamente o que fazer e quando fazer.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Pense nele como uma receita de bolo: voc\u00ea precisa escrever os passos (pegar os ingredientes, misturar, assar) para que algu\u00e9m saiba como fazer o bolo. Da mesma forma, o Workflow lista os passos que o GitHub deve seguir automaticamente, como &#8220;quando eu enviar c\u00f3digo novo, pegue esse c\u00f3digo e coloque no servidor FTP da Locaweb&#8221;.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Sem configurar o Workflow, o GitHub Actions n\u00e3o sabe que a\u00e7\u00f5es executar. \u00c9 como ter um assistente dispon\u00edvel, mas sem dar instru\u00e7\u00f5es do que ele precisa fazer. O Workflow \u00e9 justamente esse conjunto de instru\u00e7\u00f5es que ativa e guia a automa\u00e7\u00e3o.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Dentro do seu reposit\u00f3rio, para criar um Workflow, acessaremos o menu \u201cA\u00e7\u00f5es\u201d.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Neste menu, iremos clicar em \u201cconfigure um fluxo de trabalho voc\u00ea mesmo\u201d:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38449\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-1.webp\" alt=\"\" width=\"1897\" height=\"938\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-1.webp 1897w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-1-300x148.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-1-1024x506.webp 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-1-768x380.webp 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-1-50x25.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-1-1536x759.webp 1536w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-1-60x30.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-1-100x49.webp 100w\" sizes=\"auto, (max-width: 1897px) 100vw, 1897px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Ap\u00f3s isso, voc\u00ea poder\u00e1 colocar o c\u00f3digo do Workflow de deploy no FTP, copie este c\u00f3digo a seguir:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">name: Deploy via ftp<\/span>\r\n\r\n<span style=\"font-weight: 400;\">on: push<\/span>\r\n\r\n<span style=\"font-weight: 400;\">jobs:<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0deploy:<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0name: Deploy<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0runs-on: ubuntu-latest<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0steps:<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0- uses: actions\/checkout@v2<\/span>\r\n\r\n\r\n\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0- name: FTP Deploy Locaweb<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0uses: locaweb\/ftp-deploy@1.0.0<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0with:<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0host: ${{ secrets.HOST }}\u00a0<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0user: ${{ secrets.USER }}<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0password: ${{ secrets.PASS }}<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0localDir: \".\/\"<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0remoteDir: \".\/public_html\/\"<\/span><\/pre>\n<p><b>Detalhe nas duas \u00faltimas linhas do c\u00f3digo:<\/b><span style=\"font-weight: 400;\"> a pen\u00faltima linha &#8220;localDir&#8221; define a pasta raiz do reposit\u00f3rio que dever\u00e1 ser importada no FTP, e a pasta destino para a qual o conte\u00fado dever\u00e1 ser importado voc\u00ea define com a \u00faltima linha &#8220;remoteDir&#8221;, neste caso, defini como public_html pois \u00e9 a pasta raiz do site Web.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Adicione o c\u00f3digo e clique em &#8220;Commit changes&#8221;. Obs: se quiser nomear o Workflow, voc\u00ea consegue nome\u00e1-lo ali no topo, conforme a setinha do print a seguir, nomeie como preferir, apenas se atente a deixar a extens\u00e3o .yml no final do arquivo:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38450\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-2.webp\" alt=\"\" width=\"1891\" height=\"929\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-2.webp 1891w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-2-300x147.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-2-1024x503.webp 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-2-768x377.webp 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-2-50x25.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-2-1536x755.webp 1536w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-2-60x29.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-2-100x49.webp 100w\" sizes=\"auto, (max-width: 1891px) 100vw, 1891px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Ap\u00f3s clicar em \u201cCommit changes\u201d, identifique o commit da adi\u00e7\u00e3o do Workflow e clique em \u201cCommit changes\u201d novamente:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38451\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-3.webp\" alt=\"\" width=\"724\" height=\"587\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-3.webp 724w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-3-300x243.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-3-50x41.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-3-60x49.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-3-100x81.webp 100w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Em seguida, acesse o menu de \u201cA\u00e7\u00f5es\u201d novamente e verifique se n\u00e3o gerou nenhum erro na conex\u00e3o do Workflow.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Caso gere algum erro, confirme se as credenciais de acesso ao FTP adicionadas ao secrets est\u00e3o corretas.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Se estiver desta forma aqui com o \u201ccorretinho\u201d verde, significa que deu tudo certo:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38452\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-4.webp\" alt=\"\" width=\"1892\" height=\"614\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-4.webp 1892w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-4-300x97.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-4-1024x332.webp 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-4-768x249.webp 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-4-50x16.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-4-1536x498.webp 1536w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-4-60x19.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-4-100x32.webp 100w\" sizes=\"auto, (max-width: 1892px) 100vw, 1892px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">A pasta raiz do seu reposit\u00f3rio incluir\u00e1 agora a pasta \u201c.github\u201d, onde o Workflow est\u00e1 armazenado, caso queira fazer qualquer altera\u00e7\u00e3o no Workflow:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38453\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-5.webp\" alt=\"\" width=\"1895\" height=\"813\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-5.webp 1895w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-5-300x129.webp 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-5-1024x439.webp 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-5-768x329.webp 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-5-50x21.webp 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-5-1536x659.webp 1536w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-5-60x26.webp 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/02\/config-workflow-5-100x43.webp 100w\" sizes=\"auto, (max-width: 1895px) 100vw, 1895px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Com isso, seu Workflow no GitHub Actions est\u00e1 pronto para entrar em a\u00e7\u00e3o! \ud83d\ude0e<\/span><\/p>\n    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Aten\u00e7\u00e3o!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tLembrando que o Workflow que fornecemos \u00e9 para realizar um deploy simples ao FTP. Para Workflows mais elaborados, \u00e9 necess\u00e1rio uma equipe de desenvolvedores especializados que domine o GitHub.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n    \t\t<div class=\"hts-messages hts-messages--success  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Concluido<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tTodos os novos commits de quaisquer que sejam as altera\u00e7\u00f5es ou adi\u00e7\u00f5es em seu reposit\u00f3rio no GitHub (conforme configurado no c\u00f3digo, da pasta raiz .\/), ser\u00e3o automaticamente importados no FTP de sua hospedagem (conforme configurado no c\u00f3digo, na remoteDir public_html), j\u00e1 refletindo altera\u00e7\u00f5es no seu site hospedado na Web.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n","protected":false},"excerpt":{"rendered":"<p>Na pr\u00e1tica, tudo o que voc\u00ea adiciona ao reposit\u00f3rio online do GitHub, o Actions automaticamente importa para o remoteDir (diret\u00f3rio remoto) que voc\u00ea configurou, sem precisar fazer upload manual. Aqui na Locaweb \u00e9 poss\u00edvel fazer a integra\u00e7\u00e3o de reposit\u00f3rios online no GitHub com o ambiente FTP do seu site em&#8230;<\/p>\n","protected":false},"author":29,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[119],"ht-kb-tag":[],"class_list":["post-38435","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-hospedagem-de-sites"],"_links":{"self":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/38435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/comments?post=38435"}],"version-history":[{"count":1,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/38435\/revisions"}],"predecessor-version":[{"id":38454,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/38435\/revisions\/38454"}],"wp:attachment":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/media?parent=38435"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-category?post=38435"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-tag?post=38435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}