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

Rubygems release on tag push #1554

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
workflow_dispatch:
push:
branches: [ master ]
tags: [v*]
pull_request:
branches: [ master ]

Expand Down Expand Up @@ -78,3 +79,18 @@ jobs:
run: |
cd rails/actionmailer
bundle exec rake
release:
needs: [ruby, actionmailer]
runs-on: ubuntu-latest
if: ${{ contains(github.ref, 'refs/tags/v') }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3
bundler-cache: true
cache-version: 4
- uses: cadwallion/publish-rubygems-action@master
env:
RELEASE_COMMAND: rake release
RUBYGEMS_API_KEY: ${{ secrets.rubygems_api_key }}
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@ Syntax:
* Follow the conventions you see used in the source already.

And in case we didn't emphasize it enough: we love specs!


## Releases

Releases are performed automatically by a Github Action which executes whenever a version tag (eg `v2.8.1`) is pushed.