File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments