diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 105fbf35d..b6d62d644 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -326,7 +326,7 @@ jobs: mkdocs-latest: runs-on: ubuntu-latest - # Runs on main branch commits: thus rebuild documentation of version that has 'latest' alias. + # Runs on main branch commits: thus rebuild documentation of the version in the package.json if: github.ref == 'refs/heads/main' needs: - docker-main-branch @@ -344,7 +344,7 @@ jobs: - name: Extract major version from package.json run: VERSION=$(git show origin/main:package.json | jq -r .version | grep -Po '^(\d+)').x - run: git fetch origin gh-pages --depth=1 - - run: cd documentation && mike deploy --push --update-aliases ${VERSION} latest + - run: cd documentation && mike deploy --push $VERSION publish-docs: # When a new version is tagged, upload the generated typedocs to the appropriate mkdocs folder.