Skip to content

Commit

Permalink
Update GH workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
thheinen committed Jul 14, 2024
1 parent 803621f commit 345ab40
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/gempush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'

- name: Install necessary gems
run: |
gem install rotp -v 5.1.0 --no-document
gem install rotp -v 6.3.0 --no-document
- name: prepare credentials
run: |
Expand All @@ -27,7 +29,7 @@ jobs:
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
env:
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
GEM_HOST_API_KEY: ${{secrets.PUBLIC_RUBYGEM_AUTH_TOKEN}}

- name: build gem
run: |
Expand All @@ -37,4 +39,4 @@ jobs:
run: |
gem push *.gem --otp $(rotp --secret ${GEM_HOST_OTP_SECRET})
env:
GEM_HOST_OTP_SECRET: ${{secrets.RUBYGEMS_OTP_SECRET}}
GEM_HOST_OTP_SECRET: ${{secrets.PUBLIC_RUBYGEM_HOST_OTP_SECRET}}
4 changes: 3 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'

- name: Install necessary gems
run: |
Expand Down
8 changes: 4 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ gemspec

group :development do
gem "bump", "~> 0.10"
gem "chefstyle", "~> 1.7"
gem "guard", "~> 2.16"
gem "mdl", "~> 0.11"
gem "rake", "~> 13.0"
gem "chefstyle", "~> 2.2"
gem "guard", "~> 2.18"
gem "mdl", "~> 0.13"
gem "rake", "~> 13.2"
gem "yard", "~> 0.9"
end

0 comments on commit 345ab40

Please sign in to comment.