change SITE_URL depending on which branch is being deployed to
All checks were successful
Actions / Build and Push Documentation (push) Successful in 15s
All checks were successful
Actions / Build and Push Documentation (push) Successful in 15s
This commit is contained in:
parent
f91742e5ac
commit
b8ea71a839
1 changed files with 5 additions and 1 deletions
|
@ -23,7 +23,11 @@ jobs:
|
|||
uses: https://www.coastalcommits.com/actions/env@1791216cd180e6578dd1d67fb8d2852b883a5f53 # v2
|
||||
- name: Build Documentation
|
||||
run: |
|
||||
export SITE_URL="https://$CI_ACTION_REF_NAME_SLUG.packwizjs.csw.im"
|
||||
if [ "$CI_ACTION_REF_NAME_SLUG" != "main" ]; then
|
||||
export SITE_URL="https://$CI_ACTION_REF_NAME_SLUG.packwizjs.csw.im"
|
||||
else
|
||||
export SITE_URL="https://packwizjs.csw.im"
|
||||
fi
|
||||
bun docs --hostedBaseUrl $SITE_URL --useHostedBaseUrlForAbsoluteLinks true
|
||||
- name: Deploy documentation to Meli
|
||||
run: |
|
||||
|
|
Loading…
Add table
Reference in a new issue