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

Xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 36952351e ci: tighten ruby release process (#7859)
36952351e is described below

commit 36952351e73774de69a1ca7b122f03b41d8a64eb
Author: Erick Guan <[email protected]>
AuthorDate: Mon Jul 6 15:42:30 2026 +0800

    ci: tighten ruby release process (#7859)
    
    Tighten ruby release process
---
 .github/workflows/release_ruby.yml | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/release_ruby.yml 
b/.github/workflows/release_ruby.yml
index c7909c419..01540204c 100644
--- a/.github/workflows/release_ruby.yml
+++ b/.github/workflows/release_ruby.yml
@@ -28,7 +28,13 @@ on:
       - main
     paths:
       - ".github/workflows/release_ruby.yml"
-  workflow_dispatch: # allow repo collaborators to publish gem
+  # Rubygems doesn't have a staging environment, and Rubygems don't provide a
+  # public registry. Most gems follow a pre-release tag convention. But
+  # OpenDAL doesn't want pre-releases to a publish registry beyond
+  # a release process. For now, we can rely on artifacts for testing 
pre-releases.
+  # In the future, we could consider a GitHub private registry for 
pre-releases.
+  #
+  # omits `workflow_dispatch` to tighten this release workflow.
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
@@ -156,15 +162,8 @@ jobs:
           retention-days: 30
 
   publish:
-    # allow:
-    # - standard tag releases
-    # - workflow_dispatch:
-    #   - reattempt standard tag releases
-    #   - pre-releases
-
-    if: >-
-      startsWith(github.ref, 'refs/tags/v') ||
-        (github.event_name == 'workflow_dispatch' && 
contains(needs.build.outputs.version, 'rc'))
+    # allow tag releases
+    if: startsWith(github.ref, 'refs/tags/v')
 
     needs: [build, build-native]
     runs-on: ubuntu-latest

Reply via email to