From aa9b653becd24891d714c2244625484b865a6f43 Mon Sep 17 00:00:00 2001
From: David Li
Date: Mon, 18 Mar 2024 09:54:29 -0400
Subject: [PATCH] chore: add C# to release docs
---
.github/workflows/packaging.yml | 3 +++
csharp/Directory.Build.props | 2 +-
dev/release/utils-prepare.sh | 2 +-
docs/source/development/releasing.rst | 19 +++++++++++++++++++
4 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml
index 5126fb3073..c6cde1e9a3 100644
--- a/.github/workflows/packaging.yml
+++ b/.github/workflows/packaging.yml
@@ -938,6 +938,7 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs:
+ - csharp
- docs
- source
- java
@@ -961,6 +962,8 @@ jobs:
'(' \
-name docs.tgz -or \
-name '*.jar' -or \
+ -name '*.nupkg' -or \
+ -name '*.snupkg' -or \
-name '*.pom' -or \
-name '*.whl' -or \
-name 'adbc_*.tar.gz' -or \
diff --git a/csharp/Directory.Build.props b/csharp/Directory.Build.props
index 92ba53253a..ff2671a727 100644
--- a/csharp/Directory.Build.props
+++ b/csharp/Directory.Build.props
@@ -29,7 +29,7 @@
Apache Arrow ADBC library
Copyright 2022-2023 The Apache Software Foundation
The Apache Software Foundation
- 0.5.0
+ 0.11.0
diff --git a/dev/release/utils-prepare.sh b/dev/release/utils-prepare.sh
index 5eb08d81cc..51ea9a5232 100644
--- a/dev/release/utils-prepare.sh
+++ b/dev/release/utils-prepare.sh
@@ -52,7 +52,7 @@ update_versions() {
git add meta.yaml
popd
- sed -i.bak -E "s/version = \".+\"/version = \"${version}\"/" "${ADBC_DIR}/csharp/Directory.Build.props"
+ sed -i.bak -E "s/.+/${version}/" "${ADBC_DIR}/csharp/Directory.Build.props"
rm "${ADBC_DIR}/csharp/Directory.Build.props.bak"
git add "${ADBC_DIR}/csharp/Directory.Build.props"
diff --git a/docs/source/development/releasing.rst b/docs/source/development/releasing.rst
index 3c8ebd3e1c..b758c0d308 100644
--- a/docs/source/development/releasing.rst
+++ b/docs/source/development/releasing.rst
@@ -364,6 +364,25 @@ Be sure to go through on the following checklist:
# dev/release/post-06-ruby.sh 1.0.0
dev/release/post-06-ruby.sh
+.. dropdown:: Upload C#/.NET packages to NuGet
+ :class-title: sd-fs-5
+ :class-container: sd-shadow-md
+
+ You must be one of owners of the package. If you aren't an owner yet, an
+ existing owner can add you at https://nuget.org.
+
+ You will need to [create an API
+ key](https://learn.microsoft.com/en-us/nuget/nuget-org/publish-a-package#create-an-api-key).
+
+ An owner can upload:
+
+ .. code-block:: bash
+
+ export NUGET_API_KEY=
+
+ # dev/release/post-07-csharp.sh 1.0.0
+ dev/release/post-07-csharp.sh
+
.. dropdown:: Update conda-forge packages
:class-title: sd-fs-5
:class-container: sd-shadow-md