Update mkdocs.yml

This commit is contained in:
Antonio Navarro Perez 2021-10-07 20:09:33 +02:00 committed by GitHub
parent 679138d26f
commit 8b849d71c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy docs (Latest)
- name: Deploy docs (Master)
if: github.ref == 'refs/heads/master'
working-directory: ./mkdocs
run: |
@ -65,8 +65,8 @@ jobs:
env:
CUSTOM_DOMAIN: distribyted.com
- name: Deploy docs (Self-hosted)
- name: Deploy docs (Versions)
if: startsWith(github.ref, 'refs/heads/release/v')
run: |
git fetch origin gh-pages --verbose
mike deploy ${GITHUB_REF##*/release/} -t "Self-hosted ${GITHUB_REF##*/release/}" --config-file "${GITHUB_WORKSPACE}/mkdocs/mkdocs.yml" --push --rebase
mike deploy ${GITHUB_REF##*/release/} latest -t "Self-hosted ${GITHUB_REF##*/release/}" --config-file "${GITHUB_WORKSPACE}/mkdocs/mkdocs.yml" --push --rebase