4.0.0 release (#1996) #2
Workflow file for this run
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: Release | |
on: | |
push: | |
tags: | |
- v* | |
workflow_dispatch: | |
jobs: | |
release: | |
if: github.repository == 'sinatra/sinatra' | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write # for trusted publishing | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
ruby-version: ruby | |
- uses: rubygems/configure-rubygems-credentials@v1.0.0 | |
# ensure gems can be built and installed | |
- run: bundle exec rake install:rack-protection | |
- run: bundle exec rake install:sinatra | |
- run: bundle exec rake install:sinatra-contrib | |
# push gems to rubygems.org | |
- run: bundle exec rake release:rack-protection | |
- run: bundle exec rake release:sinatra | |
- run: bundle exec rake release:sinatra-contrib |