From 42dd02475690cb55a3b45ddbb03097bc5be17ab7 Mon Sep 17 00:00:00 2001 From: Simon Schmid Date: Mon, 4 Dec 2023 13:49:36 +0100 Subject: [PATCH] update release workflow --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c0ed733..f53e538 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,8 +30,12 @@ jobs: # Publish - name: publish gem env: - GEMFURY_PUSH_TOKEN: ${{ secrets.GEMFURY_PUSH_TOKEN }} + RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }} run: | + mkdir -p $HOME/.gem + touch $HOME/.gem/credentials + chmod 0600 $HOME/.gem/credentials + printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials gem build *.gemspec - curl -F package=@mote_sms-${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}.gem https://${GEMFURY_PUSH_TOKEN}@push.fury.io/atpoint/" + gem push *.gem if: ${{ steps.release.outputs.release_created }}