Skip to content

Merge pull request #18 from BaryshevRS/develop #1

Merge pull request #18 from BaryshevRS/develop

Merge pull request #18 from BaryshevRS/develop #1

Workflow file for this run

name: Angular Build and Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the repository code
- name: Checkout code
uses: actions/checkout@v4
# Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
# Install dependencies and build Angular app for production
- name: Build Angular app to prod
run: npm install && npm run build:prod
# Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist/ngrx-friends
branch: gh-pages
token: ${{ secrets.GH_TOKEN }}