Skip to content

Commit 3695235

Browse files
authored
ci: tighten ruby release process (#7859)
Tighten ruby release process
1 parent 140b2de commit 3695235

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

‎.github/workflows/release_ruby.yml‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ on:
2828
- main
2929
paths:
3030
- ".github/workflows/release_ruby.yml"
31-
workflow_dispatch: # allow repo collaborators to publish gem
31+
# Rubygems doesn't have a staging environment, and Rubygems don't provide a
32+
# public registry. Most gems follow a pre-release tag convention. But
33+
# OpenDAL doesn't want pre-releases to a publish registry beyond
34+
# a release process. For now, we can rely on artifacts for testing pre-releases.
35+
# In the future, we could consider a GitHub private registry for pre-releases.
36+
#
37+
# omits `workflow_dispatch` to tighten this release workflow.
3238

3339
concurrency:
3440
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
@@ -156,15 +162,8 @@ jobs:
156162
retention-days: 30
157163

158164
publish:
159-
# allow:
160-
# - standard tag releases
161-
# - workflow_dispatch:
162-
# - reattempt standard tag releases
163-
# - pre-releases
164-
165-
if: >-
166-
startsWith(github.ref, 'refs/tags/v') ||
167-
(github.event_name == 'workflow_dispatch' && contains(needs.build.outputs.version, 'rc'))
165+
# allow tag releases
166+
if: startsWith(github.ref, 'refs/tags/v')
168167

169168
needs: [build, build-native]
170169
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)