Skip to content

Update build-and-deploy.yml #2

Update build-and-deploy.yml

Update build-and-deploy.yml #2

name: Build and Deploy
on:
push:
branches: [main]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm install
- run: npm install angular-cli-ghpages
- run: npm run build
- name: Deploy Website to gh-pages branch
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: npm run ng -- deploy