Skip to content

Commit ac88f8a

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ 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 && git checkout "${GITHUB_REF_NAME}" && git describe
33+
2834
- name: Create Build Directory
2935
run: cmake -E make_directory ./build
3036

0 commit comments

Comments
 (0)