Skip to content

Commit

Permalink
build and deploy angular para ftp locaweb
Browse files Browse the repository at this point in the history
  • Loading branch information
oficialjfdev committed Nov 11, 2024
1 parent 9eca436 commit 74e0bd3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 16 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-deploy-ftp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and Deploy Angular Project

on:
push:
branches:
- main # Ou a branch que você deseja monitorar para o deploy
pull_request:
branches:
- main # Ou a branch para a qual você deseja enviar PRs

jobs:
build_and_deploy:
runs-on: ubuntu-latest # Ambiente de execução (Ubuntu)

steps:
- name: Check out code
uses: actions/checkout@v3 # Faz o checkout do código

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16' # Versão do Node.js a ser usada (ajuste conforme necessário)

- name: Install dependencies
run: npm install # Instala as dependências do projeto

- name: Build Angular project
run: npm run build --if-present # Executa o build do Angular, geralmente irá gerar a pasta 'dist/'

- name: FTP Deploy Locaweb
uses: locaweb/[email protected]
with:
host: ${{ secrets.HOST }}
user: ${{ secrets.USER }}
password: ${{ secrets.PASS }}
localDir: "dist" # Diretório onde o build é gerado pelo Angular (geralmente dist/)

16 changes: 0 additions & 16 deletions .github/workflows/ftp-deploy.yml

This file was deleted.

0 comments on commit 74e0bd3

Please sign in to comment.