Skip to content

Update deploy.yml

Update deploy.yml #3

Workflow file for this run

name: Build and Deploy Angular App
on:
push:
branches:
- Production # Alterado de main para Production
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: npm ci
- name: Build Angular app
run: npm run build --configuration production --output-path=docs --base-href="/${{ github.event.repository.name }}/"
- name: Add .nojekyll file
run: touch docs/.nojekyll
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs
branch: gh-pages
clean: true