Skip to content

Update mime-types-data 3.2025.0304 / 2025-03-04 #5

Update mime-types-data 3.2025.0304 / 2025-03-04

Update mime-types-data 3.2025.0304 / 2025-03-04 #5

Workflow file for this run

name: Release
on:
push:
branches:
- main
paths:
- lib/mime/types/data.rb
pull_request:
branches:
- main
types:
- closed
paths:
- lib/mime/types/data.rb
workflow_dispatch:
permissions: {}
jobs:
release:
if: github.repository == 'mime-types/mime-types-data' && (github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged))
runs-on: ubuntu-latest
environment: production
env:
rubygems_release_gem: true
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
with:
persist-credentials: true
- id: rubygems
run: |
ruby -e 'print "version=", Gem::Specification.load(ARGV[0]).rubygems_version, "\n"' mime-types-data.gemspec >> $GITHUB_OUTPUT
- name: Set up Ruby
uses: ruby/setup-ruby@32110d4e311bd8996b2a82bf2a43b714ccc91777 #v1.221.0
with:
bundler-cache: false
ruby-version: ruby
- name: Install dependencies
run: |
gem update --system="${RUBYGEMS_VERSION}"
bundle install --jobs 4 --retry 3
env:
RUBYGEMS_VERSION: ${{ steps.rubygems.outputs.version }}
- uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1