diff --git a/.github/workflows/publish_gem.yml b/.github/workflows/publish_gem.yml new file mode 100644 index 00000000..613132fd --- /dev/null +++ b/.github/workflows/publish_gem.yml @@ -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