mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix(ci): do not update latest alias on mkdocs rebuild
This commit is contained in:
parent
fd19d4c088
commit
bf199731d3
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -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 <major.x> folder.
|
||||
|
Loading…
x
Reference in New Issue
Block a user