Skip to content

Update main.yaml

Update main.yaml #54

Workflow file for this run

name: Angular Build and Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Build Angular app to prod
run: npm i && npm run build:prod
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.TOKEN_GIT}}
folder: dist/browser
branch: prod