add build workflow

This commit is contained in:
Zhang Minghan 2023-08-15 10:02:57 +08:00
parent 5bcc68c4e4
commit 88b1faea75
3 changed files with 37 additions and 0 deletions

35
.github/workflows/build.yaml vendored Normal file
View 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

View File

@ -1,5 +1,7 @@
<div align="center">
![chatnio](/app/logo.png)
# [Chat Nio](https://nio.fystart.cn)
👋 轻量级 ChatGPT 聊天平台

BIN
app/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB