chore: update windows.yml

This commit is contained in:
rankun 2020-03-22 18:09:46 +08:00
commit b474ecbb61

View file

@ -73,12 +73,12 @@ jobs:
ENV_QT_PATH: ${{ env.qt-install-path }}
run: |
call "ci\win\build_for_win.bat" release ${{ matrix.msvc-arch }}
# 从tag获取版本号
# 获取ref最后一个/后的内容
- name: Get the version
shell: bash
id: get-version
# ${ GITHUB_REF/refs\/tags\// }是linux shell ${}的变量替换语法
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
run: echo ::set-output name=version::${GITHUB_REF##*/}
# tag 打包
- name: Package
env: