fix(ci): do not update latest alias on mkdocs rebuild

This commit is contained in:
Thomas Dupont 2022-08-18 11:44:08 +02:00
parent fd19d4c088
commit bf199731d3
No known key found for this signature in database
GPG Key ID: 4480942BA87BBA24

View File

@ -326,7 +326,7 @@ jobs:
mkdocs-latest: mkdocs-latest:
runs-on: ubuntu-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' if: github.ref == 'refs/heads/main'
needs: needs:
- docker-main-branch - docker-main-branch
@ -344,7 +344,7 @@ jobs:
- name: Extract major version from package.json - name: Extract major version from package.json
run: VERSION=$(git show origin/main:package.json | jq -r .version | grep -Po '^(\d+)').x run: VERSION=$(git show origin/main:package.json | jq -r .version | grep -Po '^(\d+)').x
- run: git fetch origin gh-pages --depth=1 - 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: publish-docs:
# When a new version is tagged, upload the generated typedocs to the appropriate mkdocs <major.x> folder. # When a new version is tagged, upload the generated typedocs to the appropriate mkdocs <major.x> folder.