This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sedona-db.git


The following commit(s) were added to refs/heads/main by this push:
     new aa6c8ea  fix: Minor fixes for release manual and scripts (#130)
aa6c8ea is described below

commit aa6c8ea5d10dbfaec2216ecf7f7c35c71a3afa57
Author: Kristin Cowalcijk <[email protected]>
AuthorDate: Tue Sep 23 13:54:01 2025 +0800

    fix: Minor fixes for release manual and scripts (#130)
---
 .github/workflows/python-wheels.yml    | 18 +++++++++++++--
 .gitignore                             |  3 +++
 .gitignore => dev/release/.env.example | 42 ++++++++++------------------------
 dev/release/README.md                  |  7 +++---
 dev/release/sign-assets.sh             |  2 +-
 5 files changed, 36 insertions(+), 36 deletions(-)

diff --git a/.github/workflows/python-wheels.yml 
b/.github/workflows/python-wheels.yml
index 302cef5..441d7b0 100644
--- a/.github/workflows/python-wheels.yml
+++ b/.github/workflows/python-wheels.yml
@@ -127,8 +127,15 @@ jobs:
           path: vcpkg
 
       - name: Set SedonaDB dev version
+        shell: bash
         run: |
-          python ci/scripts/set_dev_version.py
+          # Set the unique development version anywhere except a release branch
+          if [[ "${GITHUB_REF##*/}" =~ ^branch-[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+            version="${GITHUB_REF##*/branch-}"
+            echo "${version}"
+          else
+            python ci/scripts/set_dev_version.py
+          fi
 
       - name: Build and test wheels (sedonadb)
         run: |
@@ -168,8 +175,15 @@ jobs:
         run: python -m pip install cibuildwheel==3.1.4
 
       - name: Set SedonaDB dev version
+        shell: bash
         run: |
-          python ci/scripts/set_dev_version.py
+          # Set the unique development version anywhere except a release branch
+          if [[ "${GITHUB_REF##*/}" =~ ^branch-[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+            version="${GITHUB_REF##*/branch-}"
+            echo "${version}"
+          else
+            python ci/scripts/set_dev_version.py
+          fi
 
       - name: Build and test wheels (sedonadb)
         run: |
diff --git a/.gitignore b/.gitignore
index 3ef7d21..6a4f4a0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,3 +46,6 @@ __pycache__
 
 # R-related files
 .Rproj.user
+
+# .env file for release management
+dev/release/.env
diff --git a/.gitignore b/dev/release/.env.example
similarity index 64%
copy from .gitignore
copy to dev/release/.env.example
index 3ef7d21..403d3fb 100644
--- a/.gitignore
+++ b/dev/release/.env.example
@@ -15,34 +15,16 @@
 # specific language governing permissions and limitations
 # under the License.
 
-# MacOS
-.DS_Store
-
-# sedona-cli
-.history
-
-# Generated by cargo
-debug/
-target/
-
-# Generated by rustfmt
-**/*.rs.bk
-
-# Generated by cargo llvm-cov
-coverage/
-
-# MSVC Windows builds of rustc generate these, which store debugging 
information
-*.pdb
-
-# IDE-specific settings
-.idea/
-.vscode/
-
-# documentation
-site/
-
-# Python cache files
-__pycache__
+# The GPG key ID to sign artifacts. The GPG key ID must be registered
+# to both of the followings:
+#
+#   * https://dist.apache.org/repos/dist/dev/sedona/KEYS
+#   * https://dist.apache.org/repos/dist/release/sedona/KEYS
+#
+# See these files how to import your GPG key ID to these files.
+#
+# You must set this.
+#GPG_KEY_ID=your_gpg_key_id
 
-# R-related files
-.Rproj.user
+# The username for accessing the Apache distribution SVN.
+#APACHE_USERNAME=your_apache_username
diff --git a/dev/release/README.md b/dev/release/README.md
index f468146..868ed47 100644
--- a/dev/release/README.md
+++ b/dev/release/README.md
@@ -107,13 +107,14 @@ pre-release at 
<https://github.com/apache/sedona-db/releases> with the release
 artifacts uploaded from the CI run.
 
 After the release has been created with the appropriate artifacts, the assets
-need to be signed with signatures uploaded as release assets. The GPG_KEY_ID
-must have its public component listed in the
+need to be signed with signatures uploaded as release assets. Please create
+dev/release/.env from dev/release/.env.example and set the GPG_KEY_ID variable.
+The GPG_KEY_ID in dev/release/.env must have its public component listed in the
 [Apache Sedona KEYS file](https://dist.apache.org/repos/dist/dev/sedona/KEYS).
 
 ```shell
 # sign-assets.sh <version> <rc_number>
-GPG_KEY_ID=your_gpg_key_id dev/release/sign-assets.sh 0.1.0 0
+dev/release/sign-assets.sh 0.1.0 0
 ```
 
 After the assets are signed, they can be committed and uploaded to the
diff --git a/dev/release/sign-assets.sh b/dev/release/sign-assets.sh
index 415f48e..8130434 100755
--- a/dev/release/sign-assets.sh
+++ b/dev/release/sign-assets.sh
@@ -50,7 +50,7 @@ main() {
         echo "Waiting for run to start..."
         run_id=$(gh run list \
                     --repo "${REPOSITORY}" \
-                    --workflow=packaging.yaml \
+                    --workflow=packaging \
                     --json 'databaseId,event,headBranch,status' \
                     --jq ".[] | select(.event == \"push\" and .headBranch == 
\"${tag}\") | .databaseId" | \
                     head -n 1)

Reply via email to