Skip to content

Update deploy.yml

Update deploy.yml #7

Workflow file for this run

name: CI / CD for Angular
on:
push:
branches: [ "master" ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up node.js
uses: actions/[email protected]
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Tests
run: npm run test:prod
- name: Build
run: npm run build:prod
- name: List build directory for debugging
run: ls -al dist/portfolio/browser
- name: Deploy to GitHub Pages
run:
npx angular-cli-ghpages --dir=dist/portfolio/browser --repo=https://github.com/yqni13/portfolio.git --branch=production --no-silent
env:
GH_PAT: ${{ secrets.PORTFOLIO_PAT }}