diff options
author | Isa Farnik <isa@konghq.com> | 2025-02-06 12:31:50 -0800 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2025-03-20 21:57:00 +0000 |
commit | fcd12753b6c9b66ff960cb79680d5752468e93fa (patch) | |
tree | ac0c9c32b8511decd49e3ef207afee064c2bb96f | |
parent | 9c777a4a681579bb5104ae8acaa9a160adf7bf97 (diff) | |
download | luarocks-fcd12753b6c9b66ff960cb79680d5752468e93fa.tar.gz luarocks-fcd12753b6c9b66ff960cb79680d5752468e93fa.tar.bz2 luarocks-fcd12753b6c9b66ff960cb79680d5752468e93fa.zip |
feat(releases): also publish json source_digest
-rwxr-xr-x | publishrelease | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/publishrelease b/publishrelease index f11218ec..808202e4 100755 --- a/publishrelease +++ b/publishrelease | |||
@@ -43,6 +43,10 @@ do | |||
43 | } | 43 | } |
44 | done | 44 | done |
45 | 45 | ||
46 | source_digest="$( | ||
47 | sha256sum "luarocks-${v}.tar.gz" | cut -d' ' -f1 | ||
48 | )" | ||
49 | |||
46 | ####################################### | 50 | ####################################### |
47 | # utility | 51 | # utility |
48 | ####################################### | 52 | ####################################### |
@@ -120,7 +124,8 @@ gawk ' | |||
120 | print "\"'$v'\": {" | 124 | print "\"'$v'\": {" |
121 | print "\"date\": \"'$(date +'%Y-%m-%d')'\"," | 125 | print "\"date\": \"'$(date +'%Y-%m-%d')'\"," |
122 | print "\"files\": [\"luarocks-'$v'.tar.gz\", \"luarocks-'$v'.tar.gz.asc\", \"luarocks-'$v'-win32.zip\", \"luarocks-'$v'-win32.zip.asc\", \"luarocks-'$v'-windows-32.zip\", \"luarocks-'$v'-windows-32.zip.asc\", \"luarocks-'$v'-windows-64.zip\", \"luarocks-'$v'-windows-64.zip.asc\", \"luarocks-'$v'-linux-x86_64.zip\", \"luarocks-'$v'-linux-x86_64.zip.asc\"]," | 126 | print "\"files\": [\"luarocks-'$v'.tar.gz\", \"luarocks-'$v'.tar.gz.asc\", \"luarocks-'$v'-win32.zip\", \"luarocks-'$v'-win32.zip.asc\", \"luarocks-'$v'-windows-32.zip\", \"luarocks-'$v'-windows-32.zip.asc\", \"luarocks-'$v'-windows-64.zip\", \"luarocks-'$v'-windows-64.zip.asc\", \"luarocks-'$v'-linux-x86_64.zip\", \"luarocks-'$v'-linux-x86_64.zip.asc\"]," |
123 | print "\"about\": []" | 127 | print "\"about\": []", |
128 | print "\"source_digest\": \"'$source_digest'\"" | ||
124 | print "}}," | 129 | print "}}," |
125 | } | 130 | } |
126 | } | 131 | } |