Skip to content

Commit 45485c9

Browse files
authored
update url (#85)
* update url * update actions
1 parent 000b7ee commit 45485c9

File tree

229 files changed

+39
-14672
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+39
-14672
lines changed
File renamed without changes.

.github/preview.yml renamed to .github/workflows/preview.yml

Lines changed: 26 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,22 @@ on:
55
pull_request_target:
66
paths:
77
- "projects/fastgpt/**"
8-
branches:
9-
- "new-home"
10-
- "main"
118

129
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1310
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1411
concurrency:
1512
group: "pages"
1613
cancel-in-progress: false
1714

15+
permissions:
16+
contents: read
17+
deployments: write
18+
pull-requests: write
19+
actions: read
20+
1821
jobs:
1922
deploy:
20-
permissions:
21-
actions: read # Only required for private GitHub Repo
22-
contents: read
23-
deployments: write
24-
pull-requests: write
25-
runs-on: ubuntu-latest
23+
runs-on: ubuntu-24.04
2624

2725
# Job outputs
2826
outputs:
@@ -32,14 +30,16 @@ jobs:
3230
- name: Checkout
3331
uses: actions/checkout@v4
3432
with:
35-
ref: ${{ github.event.pull_request.head.ref }}
33+
ref: ${{ github.event.pull_request.head.sha }}
3634
repository: ${{ github.event.pull_request.head.repo.full_name }}
3735
submodules: recursive # Fetch submodules
3836
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
37+
3938
- uses: pnpm/action-setup@v4
4039
name: Install pnpm
4140
with:
4241
version: 9
42+
4343
- name: Build
4444
env:
4545
NEXT_PUBLIC_HOME_URL: https://fastgpt.io
@@ -48,6 +48,7 @@ jobs:
4848
cd projects/fastgpt
4949
npm install
5050
npm run build
51+
5152
- name: Deploy to Cloudflare Pages
5253
id: deploy
5354
uses: cloudflare/wrangler-action@v3
@@ -56,26 +57,19 @@ jobs:
5657
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
5758
command: pages deploy ./projects/fastgpt/out --project-name=fastgpt-home-run
5859

59-
docsOutput:
60-
needs: [ deploy ]
61-
runs-on: ubuntu-latest
62-
steps:
63-
- uses: actions/checkout@v4
64-
with:
65-
ref: ${{ github.event.pull_request.head.ref }}
66-
repository: ${{ github.event.pull_request.head.repo.full_name }}
67-
- name: Write md
68-
run: |
69-
echo "# 📘 Preview FastGPT homepage" > report.md
70-
echo "[👀 Visit Preview](${{ needs.deploy.outputs.url }})" >> report.md
71-
cat report.md
72-
- name: Print preview url
73-
uses: labring/[email protected]
74-
if: ${{ (github.event_name == 'pull_request_target') }}
60+
- name: Comment Preview URL
61+
uses: FinleyGe/[email protected]
62+
if: success() && github.event_name == 'pull_request_target'
7563
with:
76-
version: v0.0.6
77-
env:
78-
GH_TOKEN: "${{ secrets.GH_PAT }}"
79-
SEALOS_TYPE: "pr_comment"
80-
SEALOS_FILENAME: "report.md"
81-
SEALOS_REPLACE_TAG: "DEFAULT_REPLACE_DEPLOY"
64+
token: ${{ secrets.GITHUB_TOKEN }}
65+
tool: issue-comment
66+
title: FastGPT Homepage Preview
67+
body: |
68+
🚀 **FastGPT Homepage Preview Ready!**
69+
70+
📱 **Preview URL:** ${{ steps.deploy.outputs.deployment-url }}
71+
72+
🔗 [👀 Click here to visit preview](${{ steps.deploy.outputs.deployment-url }})
73+
74+
---
75+
💡 This preview will be automatically updated when you push new commits to this PR.

.github/xiaoyi-home-image.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

projects/fastgpt/config/site.ts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { SiteConfig } from '@/types/siteConfig';
22
import { BsGithub } from 'react-icons/bs';
3-
import { FaDiscord } from "react-icons/fa";
4-
import { IoLogoGithub } from "react-icons/io";
3+
import { FaDiscord, } from "react-icons/fa";
4+
import { IoLogoGithub, } from "react-icons/io";
5+
import { IoLogoWechat } from "react-icons/io5";
6+
import { HiUserGroup } from "react-icons/hi";
7+
58
import { MdEmail } from 'react-icons/md';
69
const OPEN_SOURCE_URL = 'https://github.com/labring/FastGPT';
710

@@ -56,25 +59,25 @@ const baseSiteConfig = {
5659
headerLinks: [
5760
{ name: 'repo', href: OPEN_SOURCE_URL, icon: IoLogoGithub },
5861
{
59-
name: 'weChat',
60-
href: 'https://oss.laf.run/htr4n1-images/fastgpt-qr-code.jpg',
61-
icon: FaDiscord
62+
name: 'Lark',
63+
href: 'https://oss.laf.run/otnvvf-imgs/fastgpt-feishu1.png',
64+
icon: HiUserGroup
6265
}
6366
],
6467
footerLinks: [
65-
{ name: 'email', href: 'mailto:cloud-native-yang@sealos.io', icon: MdEmail },
68+
{ name: 'email', href: 'mailto:yujinlong@sealos.io', icon: MdEmail },
6669
{ name: 'github', href: 'https://github.com/labring/FastGPT', icon: BsGithub },
6770
{
68-
name: 'weChat',
69-
href: 'https://oss.laf.run/htr4n1-images/fastgpt-qr-code.jpg',
70-
icon: FaDiscord
71+
name: 'Lark',
72+
href: 'https://oss.laf.run/otnvvf-imgs/fastgpt-feishu1.png',
73+
icon: HiUserGroup
7174
}
7275
],
7376
footerProducts: [
7477
{ url: 'https://sealos.io', name: 'Sealos' },
7578
{ url: 'https://doc.fastgpt.io', name: 'Docs' },
7679
{ url: 'https://doc.fastgpt.io/docs/community/', name: 'Forum' },
77-
{ url: 'https://uuhyahynnudq.hzh.sealos.run/status/in', name: 'Status' },
80+
// { url: 'https://uuhyahynnudq.hzh.sealos.run/status/in', name: 'Status' },
7881
],
7982
footerService: [
8083
{ url: 'https://doc.fastgpt.io/docs/agreement/terms', name: 'Terms of Service' },

projects/xiaoyi/.dockerignore

Lines changed: 0 additions & 11 deletions
This file was deleted.

projects/xiaoyi/.env.template

Lines changed: 0 additions & 23 deletions
This file was deleted.

projects/xiaoyi/.eslintrc.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

projects/xiaoyi/.gitignore

Lines changed: 0 additions & 32 deletions
This file was deleted.

projects/xiaoyi/Dockerfile

Lines changed: 0 additions & 55 deletions
This file was deleted.

projects/xiaoyi/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)