Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish on GH tag #32

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
ruby-version: "${{ matrix.ruby }}"
- name: Bundle
run: |
gem install bundler:2.2.15
gem install bundler:2.4.10
bundle install

- name: Run Rubocop
Expand All @@ -55,3 +55,19 @@ jobs:
PGHOST: localhost
PGUSER: postgres
run: bundle exec rspec

publish:
needs: [tests]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')

permissions:
contents: write
id-token: write

steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2.2"
- uses: rubygems/release-gem@v1
Loading