-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update workflow to Preview home page (#51) Signed-off-by: Carson Yang <[email protected]> * Update preview workflow Signed-off-by: Carson Yang <[email protected]> * Update preview workflow Signed-off-by: Carson Yang <[email protected]> * Update preview workflow Signed-off-by: Carson Yang <[email protected]> * Update preview workflow Signed-off-by: Carson Yang <[email protected]> * Update preview workflow Signed-off-by: Carson Yang <[email protected]> * Update preview workflow Signed-off-by: Carson Yang <[email protected]> * Add gh-rebot config Signed-off-by: Carson Yang <[email protected]> * new home * feat: finish * update images * fix: next-ui-react version * fix: ui * add: inter modal * fix video ui * fix ui again again again ... * delete inter modal * fix: jump to default no lang * update: chinese seo * replace chinese link * add google tag manager * add domain detection * feat: add baidu conversion tracking * fix * add police filing (#72) * add comment (#73) * feat(docker): add police filing env and update cloud domain (#74) Add NEXT_PUBLIC_POLICE_FILING environment variable for police filing requirements and update cloud domain from tryfastgpt.ai to fastgpt.cn. - Add NEXT_PUBLIC_POLICE_FILING as both ARG and ENV - Update cloud domain references in sed commands Signed-off-by: Carson Yang <[email protected]> * feat(ci): add police filing build arg to landing page workflow (#75) Add NEXT_PUBLIC_POLICE_FILING environment variable as build argument in fastgpt-home-image workflow for configuring police filing information on the landing page. Signed-off-by: Carson Yang <[email protected]> * add baidu keywords (#76) --------- Signed-off-by: Carson Yang <[email protected]> Co-authored-by: Carson Yang <[email protected]> Co-authored-by: heavenmei <[email protected]> Co-authored-by: heheer <[email protected]>
- Loading branch information
1 parent
0e27ee5
commit 86fe580
Showing
68 changed files
with
3,195 additions
and
1,738 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
- yangchuansheng | ||
bot: | ||
prefix: / | ||
spe: _ | ||
allowOps: | ||
- sealos-ci-robot | ||
- sealos-release-robot | ||
email: [email protected] | ||
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}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
name: github pages | ||
name: Preview Home Page | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request_target: | ||
paths: | ||
- "projects/fastgpt/**" | ||
branches: | ||
- "new-home" | ||
- "main" | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
|
@@ -22,27 +23,59 @@ jobs: | |
deployments: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
|
||
# Job outputs | ||
outputs: | ||
url: ${{ steps.deploy.outputs.deployment-url }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node_version: 20 | ||
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 | ||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
with: | ||
version: 9 | ||
- name: Build | ||
env: | ||
NEXT_PUBLIC_HOME_URL: https://tryfastgpt.ai | ||
NEXT_PUBLIC_USER_URL: https://cloud.fastgpt.in | ||
NEXT_PUBLIC_USER_URL: https://cloud.tryfastgpt.ai | ||
run: | | ||
cd projects/fastgpt | ||
npm install | ||
npm run build | ||
- name: Deploy to Cloudflare Pages | ||
uses: andykenward/[email protected] | ||
id: pages | ||
id: deploy | ||
uses: cloudflare/wrangler-action@v3 | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} | ||
command: pages deploy ./projects/fastgpt/out --project-name=fastgpt-home-run | ||
|
||
docsOutput: | ||
needs: [ deploy ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
cloudflare-account-id: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} | ||
cloudflare-project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }} | ||
directory: ./projects/fastgpt/out | ||
github-token: ${{ secrets.GH_PAT }} | ||
github-environment: ${{ vars.CLOUDFLARE_PROJECT_NAME }} ${{ (github.ref == 'refs/heads/main' && '(Production)') || '(Preview)' }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
- name: Write md | ||
run: | | ||
echo "# 📘 Preview FastGPT homepage" > report.md | ||
echo "[👀 Visit Preview](${{ needs.deploy.outputs.url }})" >> report.md | ||
cat report.md | ||
- name: Print preview url | ||
uses: labring/[email protected] | ||
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.