Use the correct virtual hosts for production
All checks were successful
Jekyll / jekyll (pull_request) Successful in 37s
All checks were successful
Jekyll / jekyll (pull_request) Successful in 37s
This commit is contained in:
parent
dc72206742
commit
4bb523a36d
|
@ -57,11 +57,11 @@ jobs:
|
|||
run: |
|
||||
if [ "${{ gitea.ref }}" = 'refs/heads/main' ]; then
|
||||
WEB_ROOT="${WEB_DIR}/site"
|
||||
WEB_HOST="www.${WEB_DOMAIN}"
|
||||
WEB_HOST="live.www.${WEB_DOMAIN}"
|
||||
WEB_CONTEXT='/'
|
||||
else
|
||||
WEB_ROOT="${WEB_DIR}/preview"
|
||||
WEB_HOST="preview.${WEB_DOMAIN}"
|
||||
WEB_HOST="preview.www.${WEB_DOMAIN}"
|
||||
WEB_CONTEXT='/${{ gitea.event.pull_request.number }}/'
|
||||
fi
|
||||
# Save those variabes in the environment for the next steps
|
||||
|
|
Loading…
Reference in a new issue