mirror of
https://github.com/coaidev/coai.git
synced 2025-05-20 05:20:15 +09:00
add build workflow
This commit is contained in:
parent
5bcc68c4e4
commit
88b1faea75
35
.github/workflows/build.yaml
vendored
Normal file
35
.github/workflows/build.yaml
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
name: Build Test
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [ 18.x ]
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Use Golang
|
||||||
|
uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '1.20'
|
||||||
|
|
||||||
|
- name: Build Backend
|
||||||
|
run: |
|
||||||
|
go build .
|
||||||
|
|
||||||
|
- name: Use Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
- name: Build Frontend
|
||||||
|
run: |
|
||||||
|
cd app
|
||||||
|
npm install -g pnpm
|
||||||
|
pnpm install
|
||||||
|
pnpm build
|
@ -1,5 +1,7 @@
|
|||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
# [Chat Nio](https://nio.fystart.cn)
|
# [Chat Nio](https://nio.fystart.cn)
|
||||||
|
|
||||||
👋 轻量级 ChatGPT 聊天平台
|
👋 轻量级 ChatGPT 聊天平台
|
||||||
|
BIN
app/logo.png
Normal file
BIN
app/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
Loading…
Reference in New Issue
Block a user