Skip to content

Commit

Permalink
chore: add release-please GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmazza committed Sep 25, 2024
1 parent 09f64d4 commit a43379f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/publish.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write
id-token: write

jobs:
release:
if: github.repository == 'tremendous-rewards/tremendous-ruby'
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: ruby

- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}

- name: Use Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
if: ${{ steps.release.outputs.release_created }}

- uses: rubygems/release-gem@v1
if: ${{ steps.release.outputs.release_created }}

0 comments on commit a43379f

Please sign in to comment.