diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index cd4f3188f..7833d4961 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -15,11 +15,6 @@ jobs: with: python-version: 3.x - - name: Export tag version - run: | - export RELEASE_TAG_VERSION=${{ github.event.release.tag_name }} - echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION}" >> $GITHUB_ENV - - name: Setup doc deploy run: | git config --global user.name Docs deploy @@ -29,7 +24,7 @@ jobs: run: pip install mkdocs-material mkdocs-include-markdown-plugin mike - name: deploy docs - run: mike deploy --push -m "Update docs to version ${RELEASE_TAG_VERSION}" --update-aliases ${RELEASE_TAG_VERSION} latest + run: mike deploy --push -m "Update docs to version ${{ github.ref_name }}" --update-aliases ${{ github.ref_name }} latest - name: Set latest as default doc branch run: mike set-default --push latest