Skip to content

Commit 676ef3c

Browse files
authored
Use env vars on docs-release env to inject public params in workflow. (#243)
1 parent 70a37e5 commit 676ef3c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
needs: [deploy-precheck]
5454
if: ${{ needs.deploy-precheck.outputs.gh-deploy-key == 'true' }}
5555
runs-on: ubuntu-latest
56+
environment: docs-release
5657
steps:
5758
- uses: actions/checkout@v4
5859
with:
@@ -74,8 +75,6 @@ jobs:
7475
env:
7576
USE_SSH: true
7677
run: |
77-
export COCOINDEX_DOCS_POSTHOG_API_KEY=${{ secrets.COCOINDEX_DOCS_POSTHOG_API_KEY }}
78-
export COCOINDEX_DOCS_MIXPANEL_API_KEY=${{ secrets.COCOINDEX_DOCS_MIXPANEL_API_KEY }}
7978
git config --global user.email "[email protected]"
8079
git config --global user.name "CocoIndex"
8180
yarn install --frozen-lockfile

0 commit comments

Comments
 (0)