From c71a137e4523c7a0c0ab1d9b5ed018cb588599ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arist=C3=B3teles?= Date: Sun, 29 Sep 2024 18:30:10 -0300 Subject: [PATCH] chore: fix Publish action --- .github/workflows/publish.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index f5e7e68..204a870 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -27,6 +27,11 @@ jobs: run: bundle install - name: Build gem run: gem build lennarb.gemspec + - name: Set up RubyGems credentials + run: | + mkdir -p ~/.gem + echo -e "---\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials + chmod 0600 ~/.gem/credentials - name: Push gem to RubyGems env: RUBYGEMS_HOST: "https://rubygems.org"