Skip to content

Commit

Permalink
update publish
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Jul 16, 2024
1 parent bf9bbb7 commit 93b8a78
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Tag and Release

on:
workflow_dispatch:
Expand All @@ -7,13 +7,18 @@ on:
- main
paths:
- "lib/html_pipeline/version.rb"
pull_request_target:
types:
- closed

jobs:
ruby:
uses: yettoapp/actions/.github/workflows/ruby_gem_release.yml@main
secrets:
rubygems_api_key: ${{ secrets.RUBYGEMS_API_BOT_KEY }}
gh_token: ${{ secrets.PUBLIC_PUSH_TO_PROTECTED_BRANCH }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
with:
gem_name: html-pipeline
gem_name: html_pipeline
version_filepath: lib/html_pipeline/version.rb
prepare: ${{ github.event_name == 'push' }}
release: ${{ github.event_name == 'workflow_dispatch' || ((github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'release'))) }}

0 comments on commit 93b8a78

Please sign in to comment.