Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Commit 0a65c74

Browse files
committed
update build action
1 parent 68c74e5 commit 0a65c74

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/tag_and_release.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Tag and Release
22

33
on:
44
workflow_dispatch:
@@ -7,13 +7,18 @@ on:
77
- main
88
paths:
99
- "lib/mathematical/version.rb"
10+
pull_request_target:
11+
types:
12+
- closed
1013

1114
jobs:
1215
ruby:
1316
uses: yettoapp/actions/.github/workflows/ruby_gem_release.yml@main
1417
secrets:
1518
rubygems_api_key: ${{ secrets.RUBYGEMS_API_BOT_KEY }}
16-
gh_token: ${{ secrets.PUBLIC_PUSH_TO_PROTECTED_BRANCH }}
19+
gh_token: ${{ secrets.GITHUB_TOKEN }}
1720
with:
18-
gem_name: mathematical
21+
gem_name: html-pipeline
1922
version_filepath: lib/mathematical/version.rb
23+
prepare: ${{ github.event_name == 'push' }}
24+
release: ${{ github.event_name == 'workflow_dispatch' || ((github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'release'))) }}

0 commit comments

Comments
 (0)