File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3838 run : yarn build
3939
4040 deploy :
41- if : github.event_name != 'pull_request'
41+ if : ${{ github.event_name != 'pull_request' && github.secrets.GH_PAGES_DEPLOY != '' }}
4242 runs-on : ubuntu-latest
4343 steps :
4444 - uses : actions/checkout@v4
@@ -56,13 +56,13 @@ jobs:
5656 cache : yarn
5757 -
uses :
webfactory/[email protected] 5858 with :
59- ssh-private-key : ${{ secrets.GH_PAGES_DEPLOY }}
59+ ssh-private-key : ${{ github. secrets.GH_PAGES_DEPLOY }}
6060 - name : Deploy to GitHub Pages
6161 env :
6262 USE_SSH : true
6363 run : |
64- export COCOINDEX_DOCS_POSTHOG_API_KEY=${{ secrets.COCOINDEX_DOCS_POSTHOG_API_KEY }}
65- export COCOINDEX_DOCS_MIXPANEL_API_KEY=${{ secrets.COCOINDEX_DOCS_MIXPANEL_API_KEY }}
64+ export COCOINDEX_DOCS_POSTHOG_API_KEY=${{ github. secrets.COCOINDEX_DOCS_POSTHOG_API_KEY }}
65+ export COCOINDEX_DOCS_MIXPANEL_API_KEY=${{ github. secrets.COCOINDEX_DOCS_MIXPANEL_API_KEY }}
6666 git config --global user.email "[email protected] " 6767 git config --global user.name "CocoIndex"
6868 yarn install --frozen-lockfile
You can’t perform that action at this time.
0 commit comments