Skip to content

Merge pull request #2 from mystackbox/layout #10

Merge pull request #2 from mystackbox/layout

Merge pull request #2 from mystackbox/layout #10

# .github/workflows/deploy.yml
name: Deploy Angular to GitHub Pages
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm ci
- name: Build Angular app
run: npm run build -- --base-href=/prj-angular-masterpage/
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist/angular-masterpage/browser