From b1bbc324f6425ba2eea457a2c82cc7bca3b98f0d Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Tue, 22 Oct 2024 12:50:09 +0200 Subject: [PATCH] Add publishing via Trusted Publishers --- .github/workflows/publish.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..91d1ea0 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,18 @@ +name: Publish Gem + +on: workflow_dispatch + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: write + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + ruby-version: '3.2.4' + - uses: rubygems/release-gem@v1