-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathangular-deploy-github-pages.yml
More file actions
42 lines (35 loc) · 1.09 KB
/
Copy pathangular-deploy-github-pages.yml
File metadata and controls
42 lines (35 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy Angular App to GitHub Pages
on:
push:
branches:
- main # Adjust this to your default branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24 # Ensure this matches your project's Node.js version
- name: Install Dependencies
run: npm install
working-directory: frontend/
- name: Build Angular App
run: npm run build -- --output-path ../dist
working-directory: frontend/
- name: Run angular/karma tests
run: npm run test-ci
working-directory: frontend/
- name: Run vitest
run: npm run test-vitest
working-directory: frontend/
- name: Copy CNAME file
run: |
echo "www.drumbeatrepo.com" > dist/browser/CNAME
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GHPAGES }}
publish_dir: dist/browser/