32 lines
653 B
YAML
32 lines
653 B
YAML
name: run-app
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: host
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'yarn'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
corepack enable
|
|
yarn install --frozen-lockfile
|
|
|
|
- name: Build project
|
|
run: yarn build
|
|
|
|
- name: copy dist /data/wwwroot/weizhuozhongzhi-ai
|
|
run: |
|
|
mkdir -p /data/wwwroot/weizhuozhongzhi-ai
|
|
cp -r ./dist/* /data/wwwroot/weizhuozhongzhi-ai/ |