Merge pull request #7 from fac/adding-gem-checksums #36
This file contains hidden or 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: Build and Release Gem | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - lib/aws_local_config_parser/version.rb | |
| jobs: | |
| release: | |
| name: Release to RubyGems.org | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| # Build the gem package | |
| - uses: actions/checkout@v4 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| # Run tests and rubocop | |
| - name: Run tests and rubocop | |
| run: bundle exec rake | |
| # Release | |
| - name: Release to RubyGems.org | |
| uses: rubygems/release-gem@v1 |