Attempt to fix internal ZIP structure again?
All checks were successful
Generate and Release Protos / release (push) Successful in 26s
All checks were successful
Generate and Release Protos / release (push) Successful in 26s
This commit is contained in:
@@ -86,9 +86,14 @@ jobs:
|
|||||||
cp -r . "$FULL_PATH/"
|
cp -r . "$FULL_PATH/"
|
||||||
|
|
||||||
pushd "$ZIP_ROOT"
|
pushd "$ZIP_ROOT"
|
||||||
zip -r "$GITHUB_WORKSPACE/module.zip" .
|
# -D suppresses directory entries (fixes the "unexpected file" error)
|
||||||
|
# -q is quiet (optional)
|
||||||
|
zip -r -D "$GITHUB_WORKSPACE/module.zip" .
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
# Optional: Verify zip content in logs before upload
|
||||||
|
unzip -l "$GITHUB_WORKSPACE/module.zip"
|
||||||
|
|
||||||
curl -f --user "owlbot:${{ secrets.PACKAGE_PUSH }}" \
|
curl -f --user "owlbot:${{ secrets.PACKAGE_PUSH }}" \
|
||||||
--upload-file "$GITHUB_WORKSPACE/module.zip" \
|
--upload-file "$GITHUB_WORKSPACE/module.zip" \
|
||||||
"${{ github.server_url }}/api/packages/owlboard/go/upload?version=$VERSION"
|
"${{ github.server_url }}/api/packages/owlboard/go/upload?version=$VERSION"
|
||||||
Reference in New Issue
Block a user