Skip to content

Commit

Permalink
Update publish workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Webb <[email protected]>
  • Loading branch information
damacus committed Nov 27, 2023
1 parent 9e43551 commit 1860c5d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}

0 comments on commit 1860c5d

Please sign in to comment.