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 38
38
run : yarn build
39
39
40
40
deploy :
41
- if : github.event_name != 'pull_request'
41
+ if : ${{ github.event_name != 'pull_request' && github.secrets.GH_PAGES_DEPLOY != '' }}
42
42
runs-on : ubuntu-latest
43
43
steps :
44
44
- uses : actions/checkout@v4
@@ -56,13 +56,13 @@ jobs:
56
56
cache : yarn
57
57
- uses : webfactory/ssh-agent@v0.5.0
58
58
with :
59
- ssh-private-key : ${{ secrets.GH_PAGES_DEPLOY }}
59
+ ssh-private-key : ${{ github. secrets.GH_PAGES_DEPLOY }}
60
60
- name : Deploy to GitHub Pages
61
61
env :
62
62
USE_SSH : true
63
63
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 }}
66
66
git config --global user.email "cocoindex.io@gmail.com"
67
67
git config --global user.name "CocoIndex"
68
68
yarn install --frozen-lockfile
You can’t perform that action at this time.
0 commit comments