From 56124d944501ab31d1c898f408d8f118cbc7e676 Mon Sep 17 00:00:00 2001 From: thde Date: Wed, 27 Sep 2023 15:58:22 +0200 Subject: [PATCH] ci: request could not be authenticated --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c73e3cc..e6fad9c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,7 @@ on: permissions: contents: write actions: write + packages: write jobs: release: @@ -33,9 +34,7 @@ jobs: with: ruby-version: 3.2 - run: bundle install - - run: gem build *.gemspec - env: - CI_COMMIT_TAG: ${{github.ref_name}} + - run: CI_COMMIT_TAG=$(git describe --tags --abbrev=0) gem build *.gemspec - name: prepare gem credential run: | mkdir -p $HOME/.gem