-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 833 Bytes
/
deployClient.yml
File metadata and controls
41 lines (36 loc) · 833 Bytes
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
name: Deploy Client Workflow
on:
push:
branches:
- main
paths:
- "client/**"
workflow_dispatch:
inputs:
name:
description: "Mannual dispatch"
required: true
default: "deploy"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "16.16.0"
- name: Install Dependencies
working-directory: ./client
run: npm ci
- name: Build
working-directory: ./client
run: npm run build
env:
CI: ""
- name: Deploy
uses: crazy-max/ghaction-github-pages@v1
with:
target_branch: gh-pages
build_dir: ./client/build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}