|
1 | | -name: "Driver Release" |
2 | | -run-name: "Driver Release for ${{ github.ref }}" |
| 1 | +name: "Gem Release" |
| 2 | +run-name: "Gem Release for ${{ github.ref }}" |
3 | 3 |
|
4 | 4 | on: |
5 | 5 | # for auto-deploy when merging a release-candidate PR |
6 | | - pull_request: |
7 | | - types: [ closed ] |
| 6 | + push: |
| 7 | + - 'master' |
| 8 | + - '*-stable' |
8 | 9 |
|
9 | | - # for manual release trigger: "/release" in a comment on a merged |
10 | | - # release-candidate PR (useful if the auto-deploy fails) |
11 | | - # |
12 | | - # Note: this is commented out because it may be more effective to |
13 | | - # just retry the failed job in the Actions UI. |
14 | | - # issue_comment: |
15 | | - # types: [ created ] |
| 10 | + # for manual release |
| 11 | + workflow_dispatch: |
| 12 | + inputs: |
| 13 | + pr: |
| 14 | + description: "The number of the merged release candidate PR" |
| 15 | + required: true |
16 | 16 |
|
17 | 17 | env: |
18 | 18 | SILK_ASSET_GROUP: mongodb-ruby-driver |
| 19 | + GEM_NAME: mongo |
| 20 | + PRODUCT_NAME: Ruby Driver |
| 21 | + PRODUCT_ID: mongodb-ruby-driver |
19 | 22 |
|
20 | 23 | permissions: |
21 | 24 | # required for all workflows |
|
56 | 59 | with: |
57 | 60 | app_id: ${{ vars.APP_ID }} |
58 | 61 | app_private_key: ${{ secrets.APP_PRIVATE_KEY }} |
59 | | - artifact: mongo-ruby-driver |
60 | | - gem_name: mongo |
| 62 | + artifact: 'ruby-3.2' |
| 63 | + gem_name: ${{ env.GEM_NAME }} |
61 | 64 | ruby_version: 'ruby-3.2' |
62 | 65 | ref: ${{ needs.check.outputs.ref }} |
63 | 66 |
|
|
76 | 79 | aws_region_name: ${{ vars.AWS_REGION_NAME }} |
77 | 80 | aws_secret_id: ${{ secrets.AWS_SECRET_ID }} |
78 | 81 | dry_run: false |
79 | | - gem_name: mongo |
80 | | - product_name: Ruby Driver |
81 | | - product_id: mongodb-ruby-driver |
| 82 | + gem_name: ${{ env.GEM_NAME }} |
| 83 | + product_name: ${{ env.PRODUCT_NAME }} |
| 84 | + product_id: ${{ env.PRODUCT_ID }} |
82 | 85 | release_message: ${{ needs.check.outputs.message }} |
83 | 86 | silk_asset_group: ${{ env.SILK_ASSET_GROUP }} |
84 | 87 | ref: ${{ needs.check.outputs.ref }} |
0 commit comments