Closed fkr closed 3 years ago
Perfect, was just about to do this :smiley:
Conclusion: needs to be done with goreleaser.
Or somehow massaged into GH Actions. For ideas also see PR #128 .
Yes. With commits 31f64b8849e32887fd2fa3b5185aa27af01a7b6b and 714dfbee959e0745dd4517cac5023852d735f68d and recently released Git v2.32.0 (annoncement) we create a file RELEASE.txt that contain GIT_COMMIT and VERSION variables. This should happen automatically when GitHub builds the release archive (I hope, not sure what Git version or implementation they use internally).
Things left doing:
Seems like %(describe)
is not yet working on GitHub: https://github.community/t/support-for-describe-in-export-subst/196618
The source releases are missing the version infos that are compiled into the binaries. Explanation in this PR: https://github.com/gridscale/gscloud/pull/128
Conclusion: needs to be done with goreleaser.