Skip to content

Commit adaa93b

Browse files
committed
ARROW-11325: [Packaging][C#] Release Apache.Arrow.Flight and Apache.Arrow.Flight.AspNetCore
Closes #9273 from kou/packaging-nuget Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
1 parent 437c8c9 commit adaa93b

3 files changed

Lines changed: 24 additions & 14 deletions

File tree

dev/release/post-06-csharp.sh

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,25 @@ if [ -z "${NUGET_API_KEY}" ]; then
3535
exit 1
3636
fi
3737

38-
base_name=Apache.Arrow.${version}
39-
for extension in nupkg snupkg; do
40-
path=${base_name}.${extension}
41-
rm -f ${path}
42-
curl \
43-
--fail \
44-
--location \
45-
--remote-name \
46-
https://apache.bintray.com/arrow/nuget/${version}/${path}
38+
base_names=()
39+
base_names+=(Apache.Arrow.${version})
40+
base_names+=(Apache.Arrow.Flight.${version})
41+
base_names+=(Apache.Arrow.Flight.AspNetCore.${version})
42+
for base_name in ${base_names[@]}; do
43+
for extension in nupkg snupkg; do
44+
path=${base_name}.${extension}
45+
rm -f ${path}
46+
curl \
47+
--fail \
48+
--location \
49+
--remote-name \
50+
https://apache.bintray.com/arrow/nuget/${version}/${path}
51+
done
52+
dotnet nuget push \
53+
${base_name}.nupkg \
54+
-k ${NUGET_API_KEY} \
55+
-s https://api.nuget.org/v3/index.json
4756
done
48-
dotnet nuget push \
49-
${base_name}.nupkg \
50-
-k ${NUGET_API_KEY} \
51-
-s https://api.nuget.org/v3/index.json
5257

5358
echo "Success! The released NuGet package is available here:"
5459
echo " https://www.nuget.org/packages/Apache.Arrow/${version}"

dev/tasks/nuget-packages/github.linux.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ jobs:
7777
--queue-path . \
7878
--queue-remote {{ queue_remote_url }} \
7979
upload-artifacts \
80-
--pattern "arrow/csharp/artifacts/Apache.Arrow/Release/Apache.Arrow.*" \
80+
--pattern "arrow/csharp/artifacts/**/*.nupkg" \
81+
--pattern "arrow/csharp/artifacts/**/*.snupkg" \
8182
--sha {{ task.branch }} \
8283
--tag {{ task.tag }}
8384
env:

dev/tasks/tasks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,6 +1316,10 @@ tasks:
13161316
params:
13171317
run: ubuntu-csharp
13181318
artifacts:
1319+
- Apache.Arrow.Flight.AspNetCore.{no_rc_version}.nupkg
1320+
- Apache.Arrow.Flight.AspNetCore.{no_rc_version}.snupkg
1321+
- Apache.Arrow.Flight.{no_rc_version}.nupkg
1322+
- Apache.Arrow.Flight.{no_rc_version}.snupkg
13191323
- Apache.Arrow.{no_rc_version}.nupkg
13201324
- Apache.Arrow.{no_rc_version}.snupkg
13211325

0 commit comments

Comments
 (0)