docs: Configure Segment (#8996)
This commit is contained in:
parent
c30b81ef1d
commit
c38df91841
7 changed files with 152 additions and 25 deletions
1
.github/workflows/deploy-docs-draft.yml
vendored
1
.github/workflows/deploy-docs-draft.yml
vendored
|
|
@ -85,6 +85,7 @@ jobs:
|
|||
env:
|
||||
BASE_URL: /langflow-drafts/${{ steps.extract_branch.outputs.draft_directory }}
|
||||
FORCE_COLOR: 0 # Disable color output
|
||||
SEGMENT_PUBLIC_WRITE_KEY: ${{ vars.DOCS_DRAFT_SEGMENT_PUBLIC_WRITE_KEY }}
|
||||
|
||||
- name: Check Build Result
|
||||
id: buildLogFail
|
||||
|
|
|
|||
2
.github/workflows/deploy_gh-pages.yml
vendored
2
.github/workflows/deploy_gh-pages.yml
vendored
|
|
@ -25,6 +25,8 @@ jobs:
|
|||
run: cd docs && yarn install
|
||||
- name: Build website
|
||||
run: cd docs && yarn build
|
||||
env:
|
||||
SEGMENT_PUBLIC_WRITE_KEY: ${{ vars.DOCS_PROD_SEGMENT_PUBLIC_WRITE_KEY }}
|
||||
|
||||
# Popular action to deploy to GitHub Pages:
|
||||
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue