Skip to content

Apache DataFusion SQL Query Engine

ARROW-11325: [Packaging][C#] Release Apache.Arrow.Flight and Apache.Arrow.Flight.AspNetCore

Sutou Kouheib960b944671c
diff --git a/dev/release/post-06-csharp.sh b/dev/release/post-06-csharp.sh
index 7b28378fc3..e9572025ab 100755
--- a/dev/release/post-06-csharp.sh
+++ b/dev/release/post-06-csharp.sh
@@ -35,20 +35,25 @@ if [ -z "${NUGET_API_KEY}" ]; then
exit 1
fi
-base_name=Apache.Arrow.${version}
-for extension in nupkg snupkg; do
- path=${base_name}.${extension}
- rm -f ${path}
- curl \
- --fail \
- --location \
- --remote-name \
- https://apache.bintray.com/arrow/nuget/${version}/${path}
+base_names=()
+base_names+=(Apache.Arrow.${version})
+base_names+=(Apache.Arrow.Flight.${version})
+base_names+=(Apache.Arrow.Flight.AspNetCore.${version})
+for base_name in ${base_names[@]}; do
+ for extension in nupkg snupkg; do
+ path=${base_name}.${extension}
+ rm -f ${path}
+ curl \
+ --fail \
+ --location \
+ --remote-name \
+ https://apache.bintray.com/arrow/nuget/${version}/${path}
+ done
+ dotnet nuget push \
+ ${base_name}.nupkg \
+ -k ${NUGET_API_KEY} \
+ -s https://api.nuget.org/v3/index.json
done
-dotnet nuget push \
- ${base_name}.nupkg \
- -k ${NUGET_API_KEY} \
- -s https://api.nuget.org/v3/index.json
echo "Success! The released NuGet package is available here:"
echo " https://www.nuget.org/packages/Apache.Arrow/${version}"
diff --git a/dev/tasks/nuget-packages/github.linux.yml b/dev/tasks/nuget-packages/github.linux.yml
index 95c4464355..6bb5ea0e13 100644
--- a/dev/tasks/nuget-packages/github.linux.yml
+++ b/dev/tasks/nuget-packages/github.linux.yml
@@ -77,7 +77,8 @@ jobs:
--queue-path . \
--queue-remote {{ queue_remote_url }} \
upload-artifacts \
- --pattern "arrow/csharp/artifacts/Apache.Arrow/Release/Apache.Arrow.*" \
+ --pattern "arrow/csharp/artifacts/**/*.nupkg" \
+ --pattern "arrow/csharp/artifacts/**/*.snupkg" \
--sha {{ task.branch }} \
--tag {{ task.tag }}
env:
diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml
index 39986cf53a..0ce56c8b94 100644
--- a/dev/tasks/tasks.yml
+++ b/dev/tasks/tasks.yml
@@ -1316,6 +1316,10 @@ tasks:
params:
run: ubuntu-csharp
artifacts:
+ - Apache.Arrow.Flight.AspNetCore.{no_rc_version}.nupkg
+ - Apache.Arrow.Flight.AspNetCore.{no_rc_version}.snupkg
+ - Apache.Arrow.Flight.{no_rc_version}.nupkg
+ - Apache.Arrow.Flight.{no_rc_version}.snupkg
- Apache.Arrow.{no_rc_version}.nupkg
- Apache.Arrow.{no_rc_version}.snupkg