Fix version tag in create docs actions (#1050)

This commit is contained in:
h2zero authored and GitHub committed 2021-08-02 16:40:30 -05:00
1 parent 3fd075b750
commit 7c22eb3b34
1 file changed
+8 -2
+8 -2
View File
@@ -20,8 +20,14 @@ jobs:
python -m pip install --upgrade pip
pip install requests
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
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
run: |
python ./scripts/gen_wu.py ${GITHUB_REPOSITORY}
@@ -31,4 +37,4 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vuepress/dist
cname: docs.openmqttgateway.com
cname: docs.openmqttgateway.com