mirror of
https://gitlab.com/TECHNOFAB/nixlets.git
synced 2025-12-12 01:50:05 +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
|
|
@ -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