From f3facde7d0c45b3085433522a3fa1cf4bab083cf Mon Sep 17 00:00:00 2001 From: Sam Pohlenz Date: Thu, 23 May 2024 09:32:09 +0930 Subject: [PATCH] Add GitHub action for release to RubyGems --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..cce55339 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Publish gem + +on: workflow_dispatch + +jobs: + push: + runs-on: ubuntu-latest + + permissions: + contents: write + id-token: write + + # If you configured a GitHub environment on RubyGems, you must use it here. + environment: release + + 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