File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 2222 - uses : webfactory/ssh-agent@v0.5.4
2323 with :
2424 ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
25+ - name : Set env for production build
26+ if : github.ref == 'refs/heads/master'
27+ run : |
28+ echo "DOCS_BASE_URL=docs.hypernode.io" >> $GITHUB_ENV
2529 - run : hypernode-deploy build -vvv
2630 - name : archive production artifacts
2731 uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change 33# This file only contains a selection of the most common options. For a full
44# list see the documentation:
55# https://www.sphinx-doc.org/en/master/usage/configuration.html
6+ import os
67
78# -- Path setup --------------------------------------------------------------
89
7172}
7273html_show_sphinx = False
7374html_show_sourcelink = False
75+ if os .getenv ("DOCS_BASE_URL" ):
76+ html_baseurl = os .getenv ("DOCS_BASE_URL" )
7477
7578# Add any paths that contain custom static files (such as style sheets) here,
7679# relative to this directory. They are copied after the builtin static files,
You can’t perform that action at this time.
0 commit comments