Commit f989ece 1 parent ee01ba8 commit f989ece Copy full SHA for f989ece
File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 48
48
cp target\release\cddl.exe cddl-windows-amd64.exe
49
49
Compress-Archive -Path .\cddl-windows-amd64.exe -DestinationPath cddl-windows-amd64.zip
50
50
51
+ - name : Get latest release tag
52
+ id : get_latest_tag
53
+ shell : bash
54
+ run : |
55
+ LATEST_TAG=$(git describe --tags --abbrev=0)
56
+ echo "latest_tag=$LATEST_TAG" >> $GITHUB_OUTPUT
57
+ echo "Found latest tag: $LATEST_TAG"
58
+
51
59
- name : Upload binary asset
52
60
if : matrix.os == 'ubuntu-latest'
53
61
uses : svenstaro/upload-release-action@v2
56
64
file : ./cddl-linux-amd64.tar.gz
57
65
asset_name : cddl-linux-amd64.tar.gz
58
66
overwrite : true
59
- tag : " 0.9.5 "
67
+ tag : ${{ steps.get_latest_tag.outputs.latest_tag }}
60
68
61
69
- name : Upload binary asset
62
70
if : matrix.os == 'windows-latest'
66
74
file : ./cddl-windows-amd64.zip
67
75
asset_name : cddl-windows-amd64.zip
68
76
overwrite : true
69
- tag : " 0.9.5 "
77
+ tag : ${{ steps.get_latest_tag.outputs.latest_tag }}
70
78
71
79
- name : Upload binary asset
72
80
if : matrix.os == 'macOS-latest'
76
84
file : ./cddl-darwin-amd64.zip
77
85
asset_name : cddl-darwin-amd64.zip
78
86
overwrite : true
79
- tag : " 0.9.5 "
87
+ tag : ${{ steps.get_latest_tag.outputs.latest_tag }}
80
88
81
89
publish-docker :
82
90
name : Publish Docker
You can’t perform that action at this time.
0 commit comments