Driver Release for refs/heads/master #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Driver Release" | |
run-name: "Driver Release for ${{ github.ref }}" | |
on: | |
workflow_dispatch: | |
inputs: | |
dry_run: | |
description: Whether this is a dry run or not | |
required: true | |
default: true | |
type: boolean | |
env: | |
SILK_ASSET_GROUP: mongodb-ruby-driver | |
RELEASE_MESSAGE_TEMPLATE: | | |
Version {0} of the [MongoDB Ruby Driver](https://rubygems.org/gems/mongo) is now available. | |
**Release Highlights** | |
TODO: one or more paragraphs describing important changes in this release | |
**Documentation** | |
Documentation is available at [MongoDB.com](https://www.mongodb.com/docs/ruby-driver/current/). | |
**Installation** | |
You may install this version via RubyGems, with: | |
gem install --version {0} mongo | |
jobs: | |
release: | |
name: "Driver Release" | |
environment: release | |
runs-on: 'ubuntu-latest' | |
permissions: | |
# required for all workflows | |
security-events: write | |
# required to fetch internal or private CodeQL packs | |
packages: read | |
# only required for workflows in private repositories | |
actions: read | |
contents: write | |
# required by the mongodb-labs/drivers-github-tools/setup@v2 step | |
# also required by `rubygems/release-gem` | |
id-token: write | |
steps: | |
- name: "Run the publish action" | |
uses: mongodb-labs/drivers-github-tools/ruby/publish@v2 | |
with: | |
app_id: ${{ vars.APP_ID }} | |
app_private_key: ${{ secrets.APP_PRIVATE_KEY }} | |
aws_role_arn: ${{ secrets.AWS_ROLE_ARN }} | |
aws_region_name: ${{ vars.AWS_REGION_NAME }} | |
aws_secret_id: ${{ secrets.AWS_SECRET_ID }} | |
dry_run: ${{ inputs.dry_run }} | |
gem_name: mongo | |
product_name: Ruby Driver | |
product_id: mongodb-ruby-driver | |
release_message_template: ${{ env.RELEASE_MESSAGE_TEMPLATE }} | |
silk_asset_group: ${{ env.SILK_ASSET_GROUP }} |