Skip to content

Commit 5e01fd2

Browse files
committed
update release script to reattach git head
1 parent 391607c commit 5e01fd2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2727

28+
- name: Reattach git HEAD
29+
if: startsWith(github.ref, 'refs/tags/')
30+
shell: bash
31+
run: |
32+
git describe
33+
git checkout "${GITHUB_REF_NAME}"
34+
git describe
35+
2836
- name: Create Build Directory
2937
run: cmake -E make_directory ./build
3038

0 commit comments

Comments
 (0)