From 5c5240b915327d0930891d5912ec3563127776d3 Mon Sep 17 00:00:00 2001 From: Yuri Smirnov Date: Fri, 13 Sep 2024 13:12:57 +0300 Subject: [PATCH] wip --- .github/workflows/ci.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5fe5d43..fc945d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,19 +49,23 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} - deploy: + release-gem: runs-on: ubuntu-latest - environment: Deploy + permissions: + id-token: write + contents: write # Run on push to master branch - if: github.event_name == 'push' && github.ref == 'refs/heads/master' + # if: github.event_name == 'push' && github.ref == 'refs/heads/master' + if: github.event_name == 'push' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: umbrellio/publish-ruby-gem-action@v1.0.4 + - uses: ruby/setup-ruby@v1 with: - api-key: ${{ secrets.RUBYGEMS_API_KEY }} - env: - PUBLISH_JOB: true + ruby-version: ruby + bundler-cache: true + + - uses: rubygems/release-gem@v1