修订workflows文件,争取输出正确的版本号

This commit is contained in:
hahahrfool
2022-04-05 09:50:51 +08:00
parent 3a997a32bc
commit e603f2089d
2 changed files with 6 additions and 2 deletions

View File

@@ -18,9 +18,13 @@ jobs:
with:
go-version: 1.18
- name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Build
run: |
make -f Makefile_release PACK=1 BUILD_VERSION=${GITHUB_REF}
make -f Makefile_release PACK=1 BUILD_VERSION=${{ steps.get_version.outputs.VERSION }}
- name: touch xz archive
shell: bash

View File

@@ -8,7 +8,7 @@ on:
jobs:
build:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false