Skip to content

Commit b40a1d4

Browse files
committed
update the release triggers
1 parent bd8aca8 commit b40a1d4

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
1-
name: "Mongoid Release"
2-
run-name: "Mongoid Release for ${{ github.ref }}"
1+
name: "Gem Release"
2+
run-name: "Gem Release for ${{ github.ref }}"
33

44
on:
55
# for auto-deploy when merging a release-candidate PR
6-
pull_request:
7-
types: [ closed ]
6+
push:
7+
- 'master'
8+
- '*-stable'
9+
10+
# for manual release
11+
workflow_dispatch:
12+
inputs:
13+
pr:
14+
description: "The number of the merged release candidate PR"
15+
required: true
816

917
env:
1018
SILK_ASSET_GROUP: mongoid
19+
GEM_NAME: mongoid
20+
PRODUCT_NAME: Mongoid
21+
PRODUCT_ID: mongoid
1122

1223
permissions:
1324
# required for all workflows
@@ -48,8 +59,8 @@ jobs:
4859
with:
4960
app_id: ${{ vars.APP_ID }}
5061
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
51-
artifact: mongoid
52-
gem_name: mongoid
62+
artifact: 'ruby-3.2'
63+
gem_name: ${{ env.GEM_NAME }}
5364
ruby_version: 'ruby-3.2'
5465
ref: ${{ needs.check.outputs.ref }}
5566

@@ -68,9 +79,9 @@ jobs:
6879
aws_region_name: ${{ vars.AWS_REGION_NAME }}
6980
aws_secret_id: ${{ secrets.AWS_SECRET_ID }}
7081
dry_run: false
71-
gem_name: mongoid
72-
product_name: Mongoid
73-
product_id: mongoid
82+
gem_name: ${{ env.GEM_NAME }}
83+
product_name: ${{ env.PRODUCT_NAME }}
84+
product_id: ${{ env.PRODUCT_ID }}
7485
release_message: ${{ needs.check.outputs.message }}
7586
silk_asset_group: ${{ env.SILK_ASSET_GROUP }}
7687
ref: ${{ needs.check.outputs.ref }}

0 commit comments

Comments
 (0)