From 9d1fcaa827879acc2e9957b6a58bcb6a884c6cc9 Mon Sep 17 00:00:00 2001 From: Antonio Navarro Perez Date: Thu, 7 Oct 2021 19:36:25 +0200 Subject: [PATCH] Update mkdocs.yml --- .github/workflows/mkdocs.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml index f88f127..f9fedef 100644 --- a/.github/workflows/mkdocs.yml +++ b/.github/workflows/mkdocs.yml @@ -56,16 +56,17 @@ jobs: - name: Deploy docs (Latest) if: github.ref == 'refs/heads/master' + working-directory: ./mkdocs run: | echo "${CUSTOM_DOMAIN}" > "${GITHUB_WORKSPACE}/mkdocs/docs/CNAME" echo -e "User-agent: *\nDisallow: /v*.*/\nSitemap: https://${CUSTOM_DOMAIN}/sitemap.xml" > "${GITHUB_WORKSPACE}/mkdocs/docs/robots.txt" git fetch origin gh-pages --verbose - mike deploy . -t "Cloud (Latest)" --config-file "${GITHUB_WORKSPACE}/mkdocs/mkdocs.yml" --push --rebase + mike deploy latest -t "Cloud (Latest)" --config-file "${GITHUB_WORKSPACE}/mkdocs/mkdocs.yml" --push --rebase env: - CUSTOM_DOMAIN: docs.codacy.com + CUSTOM_DOMAIN: distribyted.com - name: Deploy docs (Self-hosted) 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.yml" --push --rebase + mike deploy ${GITHUB_REF##*/release/} -t "Self-hosted ${GITHUB_REF##*/release/}" --config-file "${GITHUB_WORKSPACE}/mkdocs/mkdocs.yml" --push --rebase