mirror of
https://gitlab.com/TECHNOFAB/nixlets.git
synced 2025-12-12 18:10:07 +01:00
fix(lib): add nixlet name as top level directory to all uploaded tar's
This commit is contained in:
parent
57f66fadd4
commit
c060c99d40
2 changed files with 2 additions and 2 deletions
2
flake.lock
generated
2
flake.lock
generated
|
|
@ -491,7 +491,7 @@
|
|||
},
|
||||
"locked": {
|
||||
"lastModified": 1,
|
||||
"narHash": "sha256-DPYdVXcXcHnC9Js4ff28Pbux/uPE8eBqHGrmBaYMhmg=",
|
||||
"narHash": "sha256-vFEHk+Y+T5RyXkZ3HYJvJ1BBtObtpwuMtNlsWWQWync=",
|
||||
"path": "lib",
|
||||
"type": "path"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ with lib; rec {
|
|||
echo "> Skipped ${name}@${version} because it already exists in the Package Registry"
|
||||
else
|
||||
echo "> Uploading new version ${name}@${version}"
|
||||
${pkgs.gnutar}/bin/tar -czf /tmp/${name}.tar.gz --mode='u+rwX' -C ${path} .
|
||||
${pkgs.gnutar}/bin/tar -czf /tmp/${name}.tar.gz --mode='u+rwX' -C ${path} --transform 's/^\./\/${name}/' .
|
||||
${pkgs.curl}/bin/curl --header "$AUTH_HEADER" --upload-file "/tmp/${name}.tar.gz" "$URL"; echo;
|
||||
${pkgs.coreutils}/bin/rm -f /tmp/${nixlet.name}.tar.gz
|
||||
echo "> Finished ${name}@${version}, see above"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue