workflow: tag release 6

This commit is contained in:
Jeff Harris 2021-04-14 06:39:07 +12:00
parent eaca67a0c5
commit 88d31399bc
1 changed files with 2 additions and 4 deletions

View File

@ -46,21 +46,19 @@ jobs:
CXX: ${{ steps.vars.outputs.cxx }}
run: |
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTS=ON -B build
- name: Build
run: |
cmake --build build -- -j 4
- name: Run unit tests
run: |
cd build
ctest --verbose
- name: Create artifact
if: startsWith(github.ref, 'refs/tags/')
run: |
tar -czvf ${{ github.workspace }}/dethrace-${{ steps.get_version.VERSION}}-linux-amd64.tar.gz ./build/dethrace
- name: upload linux artifact
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
@ -85,7 +83,7 @@ jobs:
with:
draft: false
prerelease: true
release_name: ${{ steps.get_version.outputs.version }}
release_name: Dethrace ${{ steps.get_version.outputs.VERSION }}
tag_name: ${{ github.ref }}
body: "hello world"
env: