Skip to content

Commit

Permalink
chore: Add release workflow
Browse files Browse the repository at this point in the history
* Release gem from GH Actions using trusted publisher
* Create GH release from changelog
  • Loading branch information
jgraichen committed Dec 13, 2024
1 parent d81088f commit 01b9fb8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: release

on:
push:
tags:
- v*

jobs:
rubygems:
if: github.repository == 'mnemosyne-mon/mnemosyne-ruby'
runs-on: ubuntu-24.04

permissions:
contents: write
id-token: write

env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 10
BUNDLE_WITHOUT: development test

steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
bundler-cache: true

- uses: rubygems/release-gem@v1

- uses: taiki-e/create-gh-release-action@v1
with:
changelog: CHANGELOG.md
draft: true
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 01b9fb8

Please sign in to comment.