Skip to content

Commit 777b97f

Browse files
committed
Update ruby gem
1 parent 1f81d02 commit 777b97f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/updateruby.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
jobs:
2+
Creating-Alpha-Version:
3+
if: github.event.label.name == 'nitro'
4+
runs-on: ubuntu-latest
5+
defaults:
6+
run:
7+
working-directory: ./playbook
8+
env:
9+
BRANCH_NAME: ${{ github.head_ref }}
10+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
11+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Setup Ruby
15+
uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: '3.0'
18+
bundler-cache: true
19+
20+
- name: Update Gem Description
21+
run: |
22+
today=$(date +"%B %d")
23+
sed -i "s|spec.description = .*|spec.description = 'This gem was last updated on $today'|g" playbook_ui.gemspec
24+
sed -i "s|spec.description = .*|spec.description = 'This gem was last updated on $today'|g" lib/playbook_ui_docs.gemspec
25+
- name: Build and push gems
26+
run: |
27+
gem build playbook_ui.gemspec
28+
gem push playbook_ui-*.gem --key $GEM_HOST_API_KEY
29+
gem build lib/playbook_ui_docs.gemspec
30+
gem push playbook_ui_docs-*.gem --key $GEM_HOST_API_KEY

0 commit comments

Comments
 (0)