Skip to content

Commit

Permalink
Merge pull request #1215 from collectiveidea/trusted-publishing
Browse files Browse the repository at this point in the history
Add trusted publishing workflow
  • Loading branch information
albus522 authored Aug 13, 2024
2 parents 7e28396 + 9584047 commit d0994cf
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish_gem.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Gem

on:
push:
tags:
- v*

jobs:
push:
if: github.repository == 'collectiveidea/delayed_job'
runs-on: ubuntu-latest
environment: publishing

permissions:
contents: write
id-token: write

steps:
# Set up
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby

# Release
- uses: rubygems/release-gem@v1

0 comments on commit d0994cf

Please sign in to comment.