-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (38 loc) · 1.11 KB
/
buildspec-p3.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
# Github Actions Workflow For Deploying Angular Build App to Netlify
name: Deploy Client App Build On Netlify
on:
push:
branches: [Prod]
pull_request:
branches: [Prod]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js and NPM
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: "Install Angular CLI"
working-directory: ./
run: npm install -g @angular/cli
- name: "Install Netlify CLI"
run : npm install netlify-cli -g
- name: "Install NPM Dependencies"
working-directory: ./
run: npm ci
- name: "Create Build File"
working-directory: ./
run: npm run build
- name: "Deploy Build On Netlify"
working-directory: ./
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_API_TOKEN: ${{ secrets.NETLIFY_API_TOKEN }}
run: |
netlify deploy \
--prod \
--dir dist/chess \
--site "$NETLIFY_SITE_ID" \
--auth "$NETLIFY_API_TOKEN"