-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 1.16 KB
/
client__deploy-netlify.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
name: (get-p-client) Deploy On Netlify
on:
pull_request:
branches: [release]
types: [closed]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: 22
- name: Code Checkout
uses: actions/checkout@v4
- name: Install Yarn Package Manager
run: npm install -g yarn
- name: Configure Netlify
run: yarn global add netlify-cli
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Build get-p-design system
run: yarn design build
- name: Build Project
run: VITE_API_BASE_URL=${{ secrets.VITE_API_BASE_URL }} yarn client build
- name: Release Beta Server
run: |
netlify deploy \
--prod \
--dir get-p-client/dist \
--site ${{ secrets.NETLIFY_SITE_ID }} \
--auth ${{ secrets.NETLIFY_API_TOKEN }}