Fixing root group for macos

This commit is contained in:
Zoe Roux 2021-04-12 00:07:47 +02:00
parent 17f043f79d
commit df2ce5c05e

View File

@ -38,7 +38,8 @@ jobs:
if [[ "${{runner.os}}" == "Windows" ]]; then if [[ "${{runner.os}}" == "Windows" ]]; then
cd dist && 7z a "../$assets.zip" cd dist && 7z a "../$assets.zip"
else else
sudo chown root:root -R dist rootgrp=$([ "${{runner.os}}" == "macOS" ] && echo wheel || echo root)
sudo chown root:$rootgrp -R dist
tar -C dist -czf "$assets.tar.gz" . tar -C dist -czf "$assets.tar.gz" .
fi fi
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2