-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathangular-deploy-github-pages.yml
More file actions
43 lines (35 loc) · 1.05 KB
/
Copy pathangular-deploy-github-pages.yml
File metadata and controls
43 lines (35 loc) · 1.05 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
43
name: Deploy Angular App to GitHub Pages
permissions:
contents: write
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: Test
uses: ./.github/actions/test/
with:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
- name: Install Dependencies
run: npm install
working-directory: frontend/
- name: Build Angular App
run: npm run build -- --output-path ../dist
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.GITHUB_TOKEN }}
publish_dir: dist/browser/