Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
245 commits
Select commit Hold shift + click to select a range
eb897da
docs
c121914yu Aug 8, 2023
93a04cc
docs
c121914yu Aug 8, 2023
48ab2d6
docs
c121914yu Aug 8, 2023
3993f52
docs
c121914yu Aug 8, 2023
da4b14f
docs (#156)
c121914yu Aug 8, 2023
b6f9f77
chat model config (#158)
c121914yu Aug 9, 2023
657d0ad
flow moduoles (#161)
c121914yu Aug 9, 2023
adabc14
del file (#162)
c121914yu Aug 9, 2023
b7b222f
perf: env template (#163)
c121914yu Aug 9, 2023
85feb00
feat: data config set scripts
c121914yu Aug 10, 2023
9ea19b8
docs
c121914yu Aug 10, 2023
63c832d
perf: search prompt, upload step and psw len
c121914yu Aug 10, 2023
f70a988
perf: docs
c121914yu Aug 10, 2023
4dc0fd3
fix: completions delta
c121914yu Aug 10, 2023
a0c397c
docs (#165)
c121914yu Aug 10, 2023
7164231
read
c121914yu Aug 11, 2023
36bd258
licence
c121914yu Aug 11, 2023
0d70220
fix: file selector
c121914yu Aug 14, 2023
d4d9e1f
fix: markdonw link
c121914yu Aug 14, 2023
c5fd570
svg logo
c121914yu Aug 14, 2023
3a49efd
pg table name
c121914yu Aug 14, 2023
90f5f84
feat: del dat confirm
c121914yu Aug 14, 2023
4952a48
perf: unlock training
c121914yu Aug 14, 2023
bb7596c
feat: queue len show
c121914yu Aug 14, 2023
7261f22
cursor
c121914yu Aug 14, 2023
b8a65e1
whole response modal
c121914yu Aug 14, 2023
cc57a7e
perf: response tag;feat: history quote
c121914yu Aug 15, 2023
d8cd2e9
remove log
c121914yu Aug 15, 2023
e8ff91c
modules
c121914yu Aug 15, 2023
2f81fbc
perf: http node response
c121914yu Aug 16, 2023
72a9307
fix: chat data outsize
c121914yu Aug 16, 2023
a149b3a
feat: http docs
c121914yu Aug 16, 2023
2c174aa
feat: copy settings config
c121914yu Aug 16, 2023
38e4a41
google search docs
c121914yu Aug 16, 2023
0455bde
google search docs
c121914yu Aug 16, 2023
c9f4bad
fix: file
c121914yu Aug 16, 2023
ce61ac3
Update README.md (#181)
yangchuansheng Aug 17, 2023
324e4a0
v4.1 (#183)
c121914yu Aug 17, 2023
40168c5
perf: logger (#186)
c121914yu Aug 17, 2023
59ccc85
页面抓取 (#185)
stakeswky Aug 17, 2023
c5b5c44
perf: url fetch
c121914yu Aug 17, 2023
b8d339f
docs
c121914yu Aug 18, 2023
4054eb9
docs
c121914yu Aug 18, 2023
1fcdd7c
feat: url fetch and create file (#199)
c121914yu Aug 19, 2023
4d8c03e
docs
c121914yu Aug 19, 2023
006b1be
perf: quote prompt
c121914yu Aug 19, 2023
c7d0975
add bill range
c121914yu Aug 20, 2023
c20fba1
docs: update the framework of doc site (#207)
yangchuansheng Aug 22, 2023
7a231c6
invite url
c121914yu Aug 20, 2023
a5f8fae
perf: plus api
c121914yu Aug 22, 2023
6a39b51
perf: plugin response
c121914yu Aug 23, 2023
6c70f06
perf: vector unit
c121914yu Aug 23, 2023
a3c4a85
perf: default prompt
c121914yu Aug 23, 2023
f8fc538
docs
c121914yu Aug 23, 2023
7edc5c5
docs action
c121914yu Aug 23, 2023
e266ab6
docs
c121914yu Aug 23, 2023
a5c8f34
prompt
c121914yu Aug 23, 2023
34ab66b
fix: docs
c121914yu Aug 24, 2023
a99ef9e
docs
c121914yu Aug 24, 2023
e589350
fix: base url
c121914yu Aug 24, 2023
2b50dac
fix: imgs cdn
c121914yu Aug 24, 2023
9415e22
v4.2 (#217)
c121914yu Aug 24, 2023
f4ae980
Update favicon (#219)
yangchuansheng Aug 25, 2023
81421bc
Fix CI workflow (#220)
yangchuansheng Aug 25, 2023
a9970dd
logo
c121914yu Aug 25, 2023
6d93059
feat: config vector model and qa model
c121914yu Aug 25, 2023
4b088e8
fix: ts
c121914yu Aug 25, 2023
5661b11
docs
c121914yu Aug 25, 2023
7f48acc
修正单词拼写 (#223)
troyhantech Aug 26, 2023
dfc40db
prompt
c121914yu Aug 24, 2023
93030af
fix: limit prompt
c121914yu Aug 26, 2023
13439c5
perf: read file token error
c121914yu Aug 26, 2023
be33794
feat: self vector search
c121914yu Aug 26, 2023
eefc976
perf: qa prompt
c121914yu Aug 26, 2023
defc736
glm2 docs
c121914yu Aug 26, 2023
4973d7a
fix: default vector
c121914yu Aug 26, 2023
0d26b1d
fix: file sprcial char
c121914yu Aug 26, 2023
92ebd6a
doc: m3e model
c121914yu Aug 26, 2023
17c59be
README
c121914yu Aug 26, 2023
05e681f
Fix favicon (#225)
yangchuansheng Aug 26, 2023
efebcd6
docs images
c121914yu Aug 26, 2023
8fd21ad
Update issue templates
c121914yu Aug 26, 2023
2556c19
issue template
c121914yu Aug 26, 2023
5fcdf28
user feedback and admin mark (#228)
c121914yu Aug 27, 2023
64b9367
perf: quote output prompt
c121914yu Aug 28, 2023
42fec3a
perf: git login
c121914yu Aug 28, 2023
c5c3826
perf: vector over range error
c121914yu Aug 28, 2023
be93795
perf: config home title
c121914yu Aug 28, 2023
7e9cac3
feat: config login tip
c121914yu Aug 28, 2023
fbb75c9
docs
c121914yu Aug 28, 2023
19d7edb
readme
c121914yu Aug 28, 2023
e0de04d
perf: open push data api
c121914yu Aug 29, 2023
86a0e7c
perf: guide modules
c121914yu Aug 29, 2023
5284312
chat default model
c121914yu Aug 29, 2023
299409a
add python requirement.txt for running GLM2 model (#226)
gaord Aug 30, 2023
0b0570f
perf: mark icon show
c121914yu Aug 30, 2023
baee8cf
私有化模型对接oneapi教程+镜像更新 (#237)
stakeswky Aug 31, 2023
3420f67
env template
c121914yu Aug 30, 2023
b22c878
fix: variable input and update chat time
c121914yu Aug 31, 2023
c1f4785
docs
c121914yu Aug 31, 2023
4f0f950
docs
c121914yu Aug 31, 2023
7231a84
fix: variable
c121914yu Aug 31, 2023
7cb035b
docs
c121914yu Aug 31, 2023
0ea464f
docs
c121914yu Aug 31, 2023
2ae8d43
fix: reg failed
c121914yu Aug 31, 2023
68cdf50
perf: config home page
c121914yu Sep 1, 2023
23cc2f8
perf: code
c121914yu Sep 1, 2023
b9b50a0
README
c121914yu Sep 1, 2023
1fe2c49
fastgpt char
c121914yu Sep 1, 2023
5157e62
feat: gridfs save file
c121914yu Sep 1, 2023
7c16d08
feat: crud file
c121914yu Sep 3, 2023
e0b23a2
feat: error track, app scroll
c121914yu Sep 3, 2023
1ace8fb
error track
c121914yu Sep 3, 2023
086ea83
docs
c121914yu Sep 3, 2023
a754cea
dataset save raw file
c121914yu Sep 3, 2023
8d55587
version docs
c121914yu Sep 3, 2023
19b1ff5
version docs
c121914yu Sep 3, 2023
a3c6d68
fix: file id
c121914yu Sep 3, 2023
44e772f
feat: file relate kb
c121914yu Sep 4, 2023
a5fe671
perf: timeout
c121914yu Sep 4, 2023
6d51b3b
README
c121914yu Sep 4, 2023
a1bcd79
image name
c121914yu Sep 4, 2023
94c5380
fix: quick question and variable
c121914yu Sep 4, 2023
8dba2c3
fix: empty kb
c121914yu Sep 4, 2023
3449024
feat: labBot demo
c121914yu Sep 4, 2023
1207e3e
update bash
c121914yu Sep 4, 2023
ae88d79
update bash
c121914yu Sep 4, 2023
5d596bd
favicon html
c121914yu Sep 4, 2023
32f482b
增加对echarts图表的支持 (#249)
stakeswky Sep 4, 2023
bd419a2
adapt echarts
c121914yu Sep 4, 2023
935287a
doc favicon
c121914yu Sep 4, 2023
562fd26
issue template
c121914yu Sep 4, 2023
7a926b7
user timezone
c121914yu Sep 5, 2023
64fde42
perf: default lang
c121914yu Sep 5, 2023
2dd2976
perf: dev doc
c121914yu Sep 5, 2023
ea65d9b
onwechat demo
c121914yu Sep 5, 2023
95389e3
修改了一些错误 (#254)
kongccc Sep 5, 2023
9bf5a3e
m3e doc
c121914yu Sep 5, 2023
fa3f3e6
limit prompt template
c121914yu Sep 5, 2023
cd455b2
prompt docs
c121914yu Sep 5, 2023
1ba3d72
Update docs: change image width (#256)
yangchuansheng Sep 5, 2023
139d0be
Docs: fix favicon (#258)
yangchuansheng Sep 5, 2023
45ba5e1
Docs: optimize codeblock (#259)
yangchuansheng Sep 6, 2023
71abe08
fix: onwechat yml
c121914yu Sep 6, 2023
da6e26f
build(main): add docs for ci (#261)
cuisongliu Sep 6, 2023
19ce6f6
Docs: fix typo (#263)
yangchuansheng Sep 6, 2023
975e011
Docs: update table style (#264)
yangchuansheng Sep 6, 2023
565f9c8
Docs: fix typo (#265)
yangchuansheng Sep 6, 2023
6f2d556
demo (#266)
c121914yu Sep 6, 2023
a1a6326
更新镜像通道 (#272)
stakeswky Sep 8, 2023
7917766
Dataset folder manager (#274)
c121914yu Sep 10, 2023
ae2887e
fix: file_id undefined bug (#275)
c121914yu Sep 11, 2023
b460486
feat: move dataset (#277)
c121914yu Sep 11, 2023
b0e7d25
docs weight (#278)
c121914yu Sep 11, 2023
b2b3aa6
Docs: add details shortcode (#279)
yangchuansheng Sep 11, 2023
970b62b
Docs: enable ‘Edit this page’ (#280)
yangchuansheng Sep 11, 2023
8f953d1
Update README.md (#283)
yangchuansheng Sep 12, 2023
c8dee29
Docs: add pricing doc (#287)
yangchuansheng Sep 12, 2023
7521bce
Docs: update cdn (#289)
yangchuansheng Sep 12, 2023
1aaafcf
Docs: update weight (#290)
yangchuansheng Sep 12, 2023
6d438aa
google login and power share link (#292)
c121914yu Sep 13, 2023
31dbcfd
Docs: update cdn (#291)
yangchuansheng Sep 13, 2023
be3b680
Docs: add community (#293)
yangchuansheng Sep 13, 2023
a19afca
v4.4.1 (#294)
c121914yu Sep 13, 2023
1bf76eb
Docs: add limiting responsibility (#295)
yangchuansheng Sep 13, 2023
6a99627
fix: share link quote (#296)
c121914yu Sep 13, 2023
ae4c479
file name (#297)
c121914yu Sep 13, 2023
eb2e383
perf: document icon and language select (#299)
c121914yu Sep 13, 2023
09b6365
perf: action cache (#300)
c121914yu Sep 13, 2023
7c1ec04
Docs: add github badge (#301)
yangchuansheng Sep 14, 2023
4365a94
System optimize (#303)
c121914yu Sep 15, 2023
24164d9
Update deploy-docs-preview workflow (#304)
yangchuansheng Sep 15, 2023
a8fdffc
Docs: intergate feishu (#305)
hehan-wang Sep 15, 2023
4538242
Docs: fix typo (#307)
yangchuansheng Sep 15, 2023
0bb31b9
Docs: update style (#310)
yangchuansheng Sep 17, 2023
b8ea546
v4.2.2 (#312)
c121914yu Sep 18, 2023
81e37a5
Update architecture diagram (#315)
yangchuansheng Sep 18, 2023
06be578
v4.4.3 (#316)
c121914yu Sep 18, 2023
b8ba947
feat: Added defaultOpen Attribute for iframe (#302)
Itswag Sep 18, 2023
40d69e6
version (#317)
c121914yu Sep 18, 2023
ba1451a
Feature: 高级编排自动布局 (#314)
Mrxyy Sep 18, 2023
35f4dec
Revert "Feature: 高级编排自动布局 (#314)" (#319)
c121914yu Sep 18, 2023
0a4a1de
fix: connected error (#318)
c121914yu Sep 18, 2023
ce7da2d
Optimize chat reponse data (#322)
c121914yu Sep 19, 2023
ac4355d
Add modal to show completion response data (#324)
c121914yu Sep 19, 2023
858117f
Docs: update font to LXGW WenKai (#325)
yangchuansheng Sep 19, 2023
63b183a
fix: mark modal cannot select folder (#327)
c121914yu Sep 20, 2023
177482b
Docs: fix code block highlight (#328)
yangchuansheng Sep 20, 2023
0d94db4
fix: ts and default dataset (#329)
c121914yu Sep 20, 2023
7e0deb2
Add SSE controller; fix share page login failed (#330)
c121914yu Sep 20, 2023
e367265
feat: function call prompt version (#331)
c121914yu Sep 21, 2023
a3c7748
Add action for translating Non-English issues content to English (#333)
yangchuansheng Sep 21, 2023
823f4b7
Optimize the structure and naming of projects (#335)
c121914yu Sep 21, 2023
e7e0677
Docs:add-workflow-case-全能助手 (#334)
astorm-z Sep 21, 2023
814c5b3
Add bill of training and rate of file upload (#339)
c121914yu Sep 21, 2023
a4ff5a3
perf: api key (#342)
c121914yu Sep 23, 2023
3d7178d
monorepo packages (#344)
c121914yu Sep 24, 2023
c9db9f3
Update intro.md (#348)
lizhuang Sep 25, 2023
9136c93
Add OpenAPI docs;Correct the glm document (#346)
c121914yu Sep 25, 2023
63cd379
Add share link hook (#351)
c121914yu Sep 25, 2023
38d4db5
Rename requirement.txt to requirements.txt (#352)
daxiaraoming Sep 26, 2023
f6552d0
v4.4.5-2 (#355)
c121914yu Sep 26, 2023
a11e0bd
Update chatglm2.md (#354)
daxiaraoming Sep 26, 2023
11848b8
v4.4.5-3 (#357)
c121914yu Sep 26, 2023
ab57bfc
perf: completions api.fix: new chat question guide (#361)
c121914yu Sep 27, 2023
36f5648
perf: v4.4.6-1 (#364)
c121914yu Sep 28, 2023
bf172fa
perf: markdown more wrap (#365)
c121914yu Oct 2, 2023
7f1fecb
Docs: update theme (#368)
yangchuansheng Oct 4, 2023
ace8134
Docs: add Dockerfile for docs (#369)
yangchuansheng Oct 6, 2023
4197f63
Update README (#371)
yangchuansheng Oct 6, 2023
45998f9
README (#372)
c121914yu Oct 6, 2023
b6e49da
Docs: update button for questionnaire (#375)
yangchuansheng Oct 6, 2023
c65a36d
Docs: hide button for questionnaire on mobile device (#376)
yangchuansheng Oct 7, 2023
98ce510
v4.4.6 (#377)
c121914yu Oct 7, 2023
6a84e73
fix: packages (#378)
c121914yu Oct 8, 2023
cd7214b
Docs: update workflow for building docs image (#384)
yangchuansheng Oct 9, 2023
29d1527
Docs: delete image cdn for vercel (#385)
yangchuansheng Oct 9, 2023
d0041a9
Optimize the file storage structure of the knowledge base (#386)
c121914yu Oct 10, 2023
bcf9491
v4.4.7-2 (#388)
c121914yu Oct 11, 2023
add73aa
Docs: use docsearch (#391)
yangchuansheng Oct 11, 2023
76ac523
Update 447.md (#392)
iworklee Oct 12, 2023
ad7a17b
Optimize the project structure and introduce DDD design (#394)
c121914yu Oct 12, 2023
7db8d3e
Docs: add quick start and video link (#395)
zuoFeng59556 Oct 13, 2023
dd8f274
Extraction schema (#398)
c121914yu Oct 14, 2023
3b776b6
v4.5 (#403)
c121914yu Oct 17, 2023
b23e00f
添加Baichuan2-7B-Chat模型接口文件 (#404)
stakeswky Oct 18, 2023
777f089
Docs: update README (#407)
yangchuansheng Oct 18, 2023
41b8f44
Docs: update qr for wechat group (#416)
yangchuansheng Oct 22, 2023
3091a90
Update README (#418)
yangchuansheng Oct 22, 2023
a353440
v4.5.1 (#417)
c121914yu Oct 22, 2023
d37433e
Config file to set doc baseurl (#419)
c121914yu Oct 23, 2023
bf6dbfb
v4.5.1-2 (#421)
c121914yu Oct 23, 2023
1942cb0
perf: btn color (#423)
c121914yu Oct 24, 2023
1dca5ed
v4.5.1-3 (#427)
c121914yu Oct 24, 2023
f2fb0ae
Update README.md 文档改为https://doc.fastgpt.in网站访问 (#424)
lizhuang Oct 24, 2023
008d0af
Quote Modal UI and fix doc (#432)
c121914yu Oct 25, 2023
60ee160
v4.5.2 (#439)
c121914yu Oct 30, 2023
661ee79
fix: CQ module output (#445)
c121914yu Oct 30, 2023
8bb5588
v4.6 -1 (#459)
c121914yu Nov 9, 2023
9f889d8
Create Python API (#457)
stakeswky Nov 9, 2023
0a0fe31
V4.6-2 (#460)
c121914yu Nov 9, 2023
9fcd34d
mongo init
c121914yu Nov 7, 2023
20bc116
perf: mongo connect
c121914yu Nov 7, 2023
1b0267b
perf: whisper
c121914yu Nov 9, 2023
04329d1
fix: export params
c121914yu Nov 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
File renamed without changes.
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/bugs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: 问题反馈
about: 详细清晰的描述你遇到的问题
title: ''
labels: bug
assignees: ''
---

**例行检查**

[//]: # '方框内填 x 表示打钩'

- [ ] 我已确认目前没有类似 issue
- [ ] 我已完整查看过项目 README,以及[项目文档](https://doc.fastgpt.in/docs/intro/)
- [ ] 我使用了自己的 key,并确认我的 key 是可正常使用的
- [ ] 我理解并愿意跟进此 issue,协助测试和提供反馈
- [x] 我理解并认可上述内容,并理解项目维护者精力有限,**不遵循规则的 issue 可能会被无视或直接关闭**

**你的版本**

- [ ] 公有云版本
- [ ] 私有部署版本

**问题描述**

**复现步骤**

**预期结果**

**相关截图**
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 微信交流群
url: https://doc.fastgpt.in/wechat-fastgpt.webp
about: FastGPT 全是问题群
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/features.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: 功能请求
about: 详细描述你期望的功能
title: ''
labels: enhancement
assignees: ''
---

**例行检查**

[//]: # '方框内填 x 表示打钩'

- [ ] 我已确认目前没有类似 features
- [ ] 我已确认我已升级到最新版本
- [ ] 我已完整查看过项目 README,已确定现有版本无法满足需求
- [ ] 我理解并愿意跟进此 features,协助测试和提供反馈
- [x] 我理解并认可上述内容,并理解项目维护者精力有限,**不遵循规则的 features 可能会被无视或直接关闭**

**功能描述**

**应用场景**

**相关示例**
30 changes: 30 additions & 0 deletions .github/gh-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: v1
debug: true
action:
printConfig: false
release:
retry: 15s
actionName: Release
allowOps:
- cuisongliu
bot:
prefix: /
spe: _
allowOps:
- sealos-ci-robot
- sealos-release-robot
email: sealos-ci-robot@sealos.io
username: sealos-ci-robot
repo:
org: false

message:
success: |
🤖 says: Hooray! The action {{.Body}} has been completed successfully. 🎉
format_error: |
🤖 says: ‼️ There is a formatting issue with the action, kindly verify the action's format.
permission_error: |
🤖 says: ‼️ The action doesn't have permission to trigger.
release_error: |
🤖 says: ‼️ Release action failed.
Error details: {{.Error}}
15 changes: 15 additions & 0 deletions .github/imgs/logo-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions .github/imgs/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions .github/workflows/bot-issues-translator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Github Rebot for issues-translator'
on:
issues:
types: [ opened ]
issue_comment:
types: [ created ]
jobs:
translate:
permissions:
issues: write
discussions: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: usthe/issues-translate-action@v2.7
with:
IS_MODIFY_TITLE: true
BOT_GITHUB_TOKEN: ${{ secrets.GH_PAT }}
CUSTOM_BOT_NOTE: Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿
70 changes: 70 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: deploy-docs

on:
workflow_dispatch:
push:
paths:
- 'docSite/**'
branches:
- 'main'
tags:
- 'v*.*.*'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains jobs "deploy-production"
deploy-production:
# The environment this job references
environment:
name: Production
url: ${{ steps.vercel-action.outputs.preview-url }}

# The type of runner that the job will run on
runs-on: ubuntu-22.04

# Job outputs
outputs:
docs: ${{ steps.filter.outputs.docs }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Step 1 - Checks-out your repository under $GITHUB_WORKSPACE
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive # Fetch submodules
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

# Step 2 Detect changes to Docs Content
- name: Detect changes in doc content
uses: dorny/paths-filter@v2
id: filter
with:
filters: |
docs:
- 'docSite/content/docs/**'
base: main

# Step 3 - Install Hugo (specific version)
- name: Install Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.117.0'
extended: true

# Step 4 - Builds the site using Hugo
- name: Build
run: cd docSite && hugo mod get -u github.com/colinwilson/lotusdocs && hugo -v --minify

# Step 5 - Push our generated site to Vercel
- name: Deploy to Vercel
uses: amondnet/vercel-action@v25
id: vercel-action
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} #Required
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} #Required
github-comment: false
vercel-args: '--prod --local-config ../vercel.json' # Optional
working-directory: docSite/public

94 changes: 94 additions & 0 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: deploy-docs-preview

on:
pull_request_target:
paths:
- 'docSite/**'
branches:
- 'main'
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains jobs "deploy-production"
deploy-preview:
# The environment this job references
environment:
name: Preview
url: ${{ steps.vercel-action.outputs.preview-url }}

# The type of runner that the job will run on
runs-on: ubuntu-22.04

# Job outputs
outputs:
url: ${{ steps.vercel-action.outputs.preview-url }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Step 1 - Checks-out your repository under $GITHUB_WORKSPACE
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
submodules: recursive # Fetch submodules
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

# Step 2 Detect changes to Docs Content
- name: Detect changes in doc content
uses: dorny/paths-filter@v2
id: filter
with:
filters: |
docs:
- 'docSite/content/docs/**'
base: main

# Step 3 - Install Hugo (specific version)
- name: Install Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.117.0'
extended: true

# Step 4 - Builds the site using Hugo
- name: Build
run: cd docSite && hugo mod get -u github.com/colinwilson/lotusdocs && hugo -v --minify

# Step 5 - Push our generated site to Vercel
- name: Deploy to Vercel
uses: amondnet/vercel-action@v25
id: vercel-action
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} #Required
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} #Required
github-comment: false
vercel-args: '--local-config ../vercel.json' # Optional
working-directory: docSite/public
alias-domains: | #Optional
fastgpt-staging.vercel.app
docsOutput:
needs: [ deploy-preview ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Write md
run: |
echo "# 🤖 Generated by deploy action" > report.md
echo "[👀 Visit Preview](${{ needs.deploy-preview.outputs.url }})" >> report.md
cat report.md
- name: Gh Rebot for Sealos
uses: labring/gh-rebot@v0.0.6
if: ${{ (github.event_name == 'pull_request_target') }}
with:
version: v0.0.6
env:
GH_TOKEN: "${{ secrets.GH_PAT }}"
SEALOS_TYPE: "pr_comment"
SEALOS_FILENAME: "report.md"
SEALOS_REPLACE_TAG: "DEFAULT_REPLACE_DEPLOY"
Loading