Skip to content

Commit

Permalink
update workflows and add changelog generation
Browse files Browse the repository at this point in the history
  • Loading branch information
tubbo committed Feb 24, 2023
1 parent db8b382 commit 15e12b3
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 26 deletions.
13 changes: 13 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
changelog:
exclude:
labels: [dependencies]
authors: [renovate-bot]
categories:
- title: Breaking Changes
labels: [breaking]
- title: New Features
labels: [enhancement]
- title: Bug Fixes
labels: [bug]
- title: Other Changes
labels: ["*"]
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI
on:
push:
branches-ignore: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["2.6", "2.7", "3.0", "3.1", "jruby"]

steps:
- uses: actions/checkout@v3
- run: sudo apt-get install -y --no-install-recommends redis-server
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- run: bundle exec rake
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish
on:
push:
tags: [v*]
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: |
mkdir -p ~/.gem
cat << EOF > ~/.gem/credentials
---
:rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}
EOF
chmod 0600 ~/.gem/credentials
- run: bundle exec rake release
- uses: softprops/action-gh-release@v1
with:
files: "*.gem"
generate_release_notes: true
prerelease: ${{ contains(github.ref, '.pre') }}
26 changes: 0 additions & 26 deletions .github/workflows/ruby.yml

This file was deleted.

0 comments on commit 15e12b3

Please sign in to comment.