Skip to content
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
6 changes: 0 additions & 6 deletions .github/workflows/push_gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ on:
tags:
- v*
workflow_dispatch:
inputs:
tag:
description: 'Tag to push to RubyGems (e.g. v4.14.0)'
required: true
type: string

permissions:
contents: read
Expand All @@ -35,7 +30,6 @@ jobs:

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref }}
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
6 changes: 4 additions & 2 deletions script/publish
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ gh release create "$tag" \
# the tag push above will not fire push_gem.yml on its own when this
# script runs inside the publish-release workflow. Dispatch it here so
# 'script/publish' always results in a gem being pushed to RubyGems.
#
# Dispatch against the tag ref (not main) because the 'release'
# environment restricts deployments to v* tags.
gh workflow run push_gem.yml \
--repo ViewComponent/view_component \
--ref main \
--field tag="$tag" || true
--ref "$tag" || true
Loading