-
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.
build and deploy angular para ftp locaweb
- Loading branch information
1 parent
9eca436
commit 74e0bd3
Showing
2 changed files
with
37 additions
and
16 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 |
---|---|---|
@@ -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/) | ||
|
This file was deleted.
Oops, something went wrong.