Skip to content

deploy-client

deploy-client #258

Workflow file for this run

name: deploy-client
on:
workflow_run:
workflows: [CI-TEST]
types: [completed]
branches: [main]
push:
branches:
- main
paths:
- "packages/client/**"
jobs:
deploy:
runs-on: ubuntu-latest
env:
CI: false
PUBLIC_URL: "/lasso"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache node_modules
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Fix node version
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install
run: npm install
- name: Build
run: npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: packages/client/build # The folder the action should deploy.
clean-exclude: /data