Skip to content

Commit

Permalink
Update ruby gem
Browse files Browse the repository at this point in the history
  • Loading branch information
markdoeswork committed May 10, 2024
1 parent 1f81d02 commit 777b97f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/updateruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
jobs:
Creating-Alpha-Version:
if: github.event.label.name == 'nitro'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./playbook
env:
BRANCH_NAME: ${{ github.head_ref }}
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
steps:
- uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true

- name: Update Gem Description
run: |
today=$(date +"%B %d")
sed -i "s|spec.description = .*|spec.description = 'This gem was last updated on $today'|g" playbook_ui.gemspec
sed -i "s|spec.description = .*|spec.description = 'This gem was last updated on $today'|g" lib/playbook_ui_docs.gemspec
- name: Build and push gems
run: |
gem build playbook_ui.gemspec
gem push playbook_ui-*.gem --key $GEM_HOST_API_KEY
gem build lib/playbook_ui_docs.gemspec
gem push playbook_ui_docs-*.gem --key $GEM_HOST_API_KEY

0 comments on commit 777b97f

Please sign in to comment.