Skip to content

Update dependency overcommit to v0.64.1 #150

Update dependency overcommit to v0.64.1

Update dependency overcommit to v0.64.1 #150

Workflow file for this run

name: steps
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
name: test on ruby ${{ matrix.ruby }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: ruby/setup-ruby@master
with:
ruby-version: ${{ matrix.ruby }}
- run: gem install bundler
- run: bundle install
- run: bundle exec rake
- run: bundle exec overcommit --sign
- env:
GIT_AUTHOR_NAME: John Doe
GIT_AUTHOR_EMAIL: johndoe@example.com
run: bundle exec overcommit --run
strategy:
matrix:
ruby: ['3.0', '3.1', '3.2', '3.3']
deploy:
if: github.ref == 'refs/heads/main'
name: to rubygems
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: ruby/setup-ruby@master
with:
ruby-version: 3.3
- env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push *.gem