-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 1.02 KB
/
deploy.yml
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
44
name: CI / CD for Angular
on:
push:
branches: [ "master" ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up node.js
uses: actions/setup-node@v4.0.2
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build:prod
- name: List build directory for debugging
run: ls -al dist/portfolio/browser
- name: Lint
run: npm run lint
- name: Tests
run: npm run test:prod
- name: Configure Git
run:
git config --global user.email "yqni13@protonmail.com"
git config --global user.name "yqni13"
- name: Deploy to GitHub Pages
env:
GH_PAT: ${{ secrets.PORTFOLIO_PAT }}
run:
npx angular-cli-ghpages --dir=dist/portfolio/browser --repo=https://github.com/yqni13/portfolio.git --branch=production --no-silent