Skip to content

Commit 06cc807

Browse files
Don't use Git tag in manual release build
1 parent 0ef4baf commit 06cc807

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ jobs:
3838
- name: Build
3939
shell: bash
4040
run: |
41-
tag=$(git describe --tags --abbrev=0)
41+
if [ "${{ github.event_name }}" = "release" ]; then
42+
tag=$(git describe --tags --abbrev=0)
43+
else
44+
tag="manual-build"
45+
fi
4246
4347
cargo build --release --target ${{ matrix.target }}
4448

0 commit comments

Comments
 (0)