Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dev/release): add C# post-release script #1595

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions dev/release/post-07-csharp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/usr/bin/env bash
# -*- indent-tabs-mode: nil; sh-indentation: 2; sh-basic-offset: 2 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

set -e
set -u
set -o pipefail

main() {
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <version>"
exit
fi

local -r version="$1"

if [ -z "${NUGET_API_KEY}" ]; then
echo "NUGET_API_KEY is empty"
exit 1
fi

local base_names=()
base_names+=(Apache.Arrow.Adbc.${version})
base_names+=(Apache.Arrow.Adbc.Client.${version})
base_names+=(Apache.Arrow.Adbc.Drivers.BigQuery.${version})
base_names+=(Apache.Arrow.Adbc.Drivers.FlightSql.${version})
base_names+=(Apache.Arrow.Adbc.Drivers.Interop.Snowflake.${version})
for base_name in "${base_names[@]}"; do
dotnet nuget push \
${base_name}.nupkg \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do these packages come from?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, in #1636 I'm adding C# to packaging.yml like all the other builds. Then this script can pull the artifacts from the GitHub release as the other scripts do.

-k ${NUGET_API_KEY} \
-s https://api.nuget.org/v3/index.json
rm -f ${base_name}.{nupkg,snupkg}
done

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

main "$@"
File renamed without changes.
10 changes: 5 additions & 5 deletions docs/source/development/releasing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ Be sure to go through on the following checklist:

.. code-block:: Bash

dev/release/post-07-remove-old-artifacts.sh
dev/release/post-08-remove-old-artifacts.sh

.. dropdown:: Bump versions
:class-title: sd-fs-5
Expand All @@ -394,8 +394,8 @@ Be sure to go through on the following checklist:

.. code-block:: Bash

# dev/release/post-08-bump-versions.sh ../arrow 0.1.0 0.2.0
dev/release/post-08-bump-versions.sh <arrow-dir> <version> <next_version>
# dev/release/post-09-bump-versions.sh ../arrow 0.1.0 0.2.0
dev/release/post-09-bump-versions.sh <arrow-dir> <version> <next_version>

.. dropdown:: Publish release blog post
:class-title: sd-fs-5
Expand All @@ -407,7 +407,7 @@ Be sure to go through on the following checklist:

.. code-block:: Bash

# dev/release/post-09-website.sh ../arrow-site 0.0.0 0.1.0
dev/release/post-09-website.sh <arrow-site-dir> <prev_version> <version>
# dev/release/post-10-website.sh ../arrow-site 0.0.0 0.1.0
dev/release/post-10-website.sh <arrow-site-dir> <prev_version> <version>

.. _nightly-website.yml: https://github.com/apache/arrow-adbc/actions/workflows/nightly-website.yml
Loading