From 1860c5d34c5fa33c7275d7c7797dd082af7d920f Mon Sep 17 00:00:00 2001 From: Dan Webb Date: Mon, 27 Nov 2023 11:36:17 +0000 Subject: [PATCH] Update publish workflow Signed-off-by: Dan Webb --- .github/workflows/publish.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 634d169..43b09e6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,17 +10,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: google-github-actions/release-please-action@v3 + id: release with: release-type: ruby package-name: kitchen-digitalocean version-file: lib/kitchen/driver/digitalocean_version.rb + token: ${{ secrets.PORTER_GITHUB_TOKEN }} - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 if: ${{ steps.release.outputs.release_created }} - name: Build and publish to GitHub Package - uses: jstastny/publish-gem-to-github@master + uses: actionshub/publish-gem-to-github@main if: ${{ steps.release.outputs.release_created }} with: token: ${{ secrets.GITHUB_TOKEN }} @@ -29,6 +31,5 @@ jobs: - name: Build and publish to RubyGems uses: actionshub/publish-gem-to-rubygems@main if: ${{ steps.release.outputs.release_created }} - env: - token: ${{ secrets.RUBYGEMS_TOKEN }} - owner: ${{ secrets.OWNER }} + with: + token: ${{ secrets.RUBYGEMS_API_KEY }}