From 8278fb3b3b9794ab3439f2259758c92680adc75d Mon Sep 17 00:00:00 2001 From: Ladislav Foldyna Date: Sat, 1 Jun 2024 20:26:05 +0200 Subject: [PATCH] MacOS: Artifact name based on tag (2) --- .github/workflows/c-cpp.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index f290425a..568b5fdd 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -83,6 +83,10 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive + - name: Get version from tag + run : | + TAGVERSION=$(git describe --tags) + echo "TAGVERSION=${TAGVERSION:1}" >> $GITHUB_ENV - name: Configure and compile run: | mkdir build @@ -108,5 +112,5 @@ jobs: - name: Copy artifact uses: actions/upload-artifact@v4 with: - name: QLog-${{github.ref_name}}-${{ matrix.os }} + name: QLog-${{ env.TAGVERSION }}-${{ matrix.os }} path: /Users/runner/work/QLog/QLog/build/qlog.dmg