Fix version tag in create docs actions (#1050)
This commit is contained in:
1 parent
3fd075b750
commit
7c22eb3b34
1 file changed
+7
-1
@@ -20,8 +20,14 @@ jobs:
|
|||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install requests
|
pip install requests
|
||||||
npm install
|
npm install
|
||||||
|
- name: get lastest release tag
|
||||||
|
id: last_release
|
||||||
|
uses: InsonusK/get-latest-release@v1.0.1
|
||||||
|
with:
|
||||||
|
myToken: ${{ github.token }}
|
||||||
|
view_top: 1
|
||||||
- name: Set version tag from git
|
- name: Set version tag from git
|
||||||
run: sed -i "s/version_tag/${GITHUB_REF#refs/tags/}/g" docs/.vuepress/config.js
|
run: sed -i "s/version_tag/${{steps.last_release.outputs.tag_name}}/g" docs/.vuepress/config.js
|
||||||
- name: Build documentation
|
- name: Build documentation
|
||||||
run: |
|
run: |
|
||||||
python ./scripts/gen_wu.py ${GITHUB_REPOSITORY}
|
python ./scripts/gen_wu.py ${GITHUB_REPOSITORY}
|
||||||
|
|||||||
Reference in new issue
Block a user