Skip to content

Create build-and-deploy.yml #1

Create build-and-deploy.yml

Create build-and-deploy.yml #1

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: ng deploy