change SITE_URL depending on which branch is being deployed to
All checks were successful
Actions / Build and Push Documentation (push) Successful in 15s

This commit is contained in:
cswimr 2025-02-09 14:44:59 -06:00
parent f91742e5ac
commit b8ea71a839
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

View file

@ -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: |