diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index be7d5de0ca..4da56d8a58 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -46,9 +46,10 @@ jobs: # Copy all of the root level md files into the docs folder for deployment, tweaking the relative paths for i in *.md; do sed -e "s#docs/#./#g" $i >docs/$i; done # Populate overrides for the current version, and then remove to not apply if VERSION is main branch - echo -e "{% extends "base.html" %}\n\n{% block outdated %}\n You are viewing the documentation for ACA-Py Release $VERSION.\n{% endblock %}" >overrides/main.html - # If building from main, use latest as ALIAS and remove the base.html override - [ "$VERSION" == "main" ] && ALIAS=latest && rm overrides/base.html + OVERRIDE=overrides/main.html + echo -e "{% extends \"base.html\" %}\n\n{% block outdated %}\n You are viewing the documentation for ACA-Py Release $ALIAS.\n{% endblock %}" >$OVERRIDE + # If building from main, use latest as ALIAS and remove the override + [ "$VERSION" == "main" ] && ALIAS=latest && rm $OVERRIDE echo $VERSION $ALIAS mike deploy --push --update-aliases $VERSION $ALIAS mike set-default latest