We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b3db59 commit 305dcbbCopy full SHA for 305dcbb
1 file changed
.github/workflows/release.yml
@@ -38,11 +38,12 @@ jobs:
38
run: |
39
set -euo pipefail
40
41
+ PROJECT_NAME=`go list -m | sed -r 's/(.*\/)*(.+)/\2/'`
42
TAG=`echo "$TAG_NAME" | sed 's/\//-/g'`
43
git archive \
44
--format=tar.gz \
- --prefix="midgard-src-${TAG}/" \
45
- --output="midgard-src-${TAG}.tar.gz" \
+ --prefix="${PROJECT_NAME}-src-${TAG}/" \
46
+ --output="${PROJECT_NAME}-src-${TAG}.tar.gz" \
47
"$TAG_NAME"
48
49
- name: Upload Release (via GitHub CLI)
@@ -52,7 +53,9 @@ jobs:
52
53
shell: bash
54
55
- gh release upload "$TAG_NAME" midgard-src-*.tar.gz --clobber
56
+
57
58
+ gh release upload "$TAG_NAME" ${PROJECT_NAME}-src-*.tar.gz --clobber
59
60
ChecksumReleaseAssets:
61
needs: Build
0 commit comments