From 730e937b41a50b858105a441472be3849f9a431b Mon Sep 17 00:00:00 2001 From: Daniel Morrison Date: Thu, 11 Jan 2024 15:17:26 -0500 Subject: [PATCH] Set up Rubygems trusted publishing --- .github/workflows/publish_gem.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/publish_gem.yml diff --git a/.github/workflows/publish_gem.yml b/.github/workflows/publish_gem.yml new file mode 100644 index 00000000..eaeb5c41 --- /dev/null +++ b/.github/workflows/publish_gem.yml @@ -0,0 +1,26 @@ +name: Publish Gem + +on: + push: + tags: + - v* + +jobs: + push: + runs-on: ubuntu-latest + + 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