Skip to content

ci: update main.yml for gh-pages #7

ci: update main.yml for gh-pages

ci: update main.yml for gh-pages #7

Workflow file for this run

name: Deploy Angular SPA to GitHub Pages
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js 16.15.1
uses: actions/setup-node@v1
with:
node-version: '16.15.1'
- name: Build 🔨
run: |
npm install -g @angular/cli@11 --legacy-peer-deps
npm install --legacy-peer-deps
ng build --prod --base-href=""
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist/git-catalogue