diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 4da56d8a58..e22d7763ad 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -7,9 +7,6 @@ on: - main - docs-v* - create: - # Publish any `docs-v` branches -- check below to not run on other created branches - permissions: contents: write @@ -39,10 +36,8 @@ jobs: # Strip git ref prefix from version echo "${{ github.ref }}" VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') - # If this is for a branch other than main or one starting with "docs-v" then exit happily - [[ "$VERSION" != "main" && "$VERSION" != "docs-v"* ]] && echo Not a docs branch...exiting && exit 0 # Strip "docs-v" prefix from branch name - [[ "$VERSION" == "docs-v"* ]] && ALIAS=$(echo $VERSION | sed -e 's/^docs-v//') + [[ "$VERSION" == "docs-v"* ]] && ALIAS=$(echo $VERSION | sed -e 's/^docs-v//') && VERSION=${ALIAS} # 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