Skip to content

Merge pull request #9 from naschorr/dev #26

Merge pull request #9 from naschorr/dev

Merge pull request #9 from naschorr/dev #26

name: Angular Build and Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
build_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Cache Dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build
run: |
npm install
npm run build
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch : gh-pages
folder: dist/nickschorr.com/browser