Skip to content

Commit 8278fb3

Browse files
committed
MacOS: Artifact name based on tag (2)
1 parent bb0b557 commit 8278fb3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/c-cpp.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ jobs:
8383
uses: actions/checkout@v4
8484
with:
8585
submodules: recursive
86+
- name: Get version from tag
87+
run : |
88+
TAGVERSION=$(git describe --tags)
89+
echo "TAGVERSION=${TAGVERSION:1}" >> $GITHUB_ENV
8690
- name: Configure and compile
8791
run: |
8892
mkdir build
@@ -108,5 +112,5 @@ jobs:
108112
- name: Copy artifact
109113
uses: actions/upload-artifact@v4
110114
with:
111-
name: QLog-${{github.ref_name}}-${{ matrix.os }}
115+
name: QLog-${{ env.TAGVERSION }}-${{ matrix.os }}
112116
path: /Users/runner/work/QLog/QLog/build/qlog.dmg

0 commit comments

Comments
 (0)