Skip to content

Commit

Permalink
MacOS: Artifact name based on tag (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Jun 1, 2024
1 parent bb0b557 commit 8278fb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 8278fb3

Please sign in to comment.