ci: fixed version error (#14085)

pull/14187/head
SWHL 2024-10-24 22:59:26 +08:00 committed by GitHub
parent c70936cda5
commit aae2a3e6c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,8 @@ jobs:
restore-keys: |
mkdocs-material-
- run: pip install mike mkdocs-material jieba mkdocs-git-revision-date-localized-plugin mkdocs-git-committers-plugin-2 mkdocs-static-i18n
- name: Set custom var
run: echo "VERSION=v$(echo '${{ github.ref_name }}' | cut -d '/' -f2)" >> $GITHUB_ENV
- run: |
git fetch origin gh-pages --depth=1
VERSION="v"$(${{ github.ref_name }} | cut -d "/" -f2)
mike deploy --push VERSION
mike deploy --push "${VERSION}"