File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Gem
2+
3+ on :
4+ push :
5+ tags :
6+ - " *"
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Set version
14+ id : version
15+ run : echo "version=${GITHUB_REF#refs/*/v}" >> $GITHUB_OUTPUT
16+
17+ - name : checkout
18+ uses : actions/checkout@v3
19+
20+ - name : Setup Ruby using Bundler
21+ uses : ruby/setup-ruby@v1
22+ with :
23+ ruby-version : " 2.7.1"
24+ bundler-cache : true
25+ bundler : " 2.1.4"
26+
27+ - name : install gems
28+ run : bundle install
29+
30+ - name : Setup Rubygems credentials
31+ run : |
32+ set +x
33+ mkdir -p ~/.gem
34+ cat << EOF > ~/.gem/credentials
35+ ---
36+ :rubygems_api_key: ${{ secrets.OSC_ROBOT_RUBYGEMS_TOKEN }}
37+ EOF
38+ chmod 0600 ~/.gem/credentials
39+
40+ - name : Publish Gem
41+ run : |
42+ bundle exec rake build
43+ gem push pkg/ood_support-${{ steps.version.outputs.version }}.gem
You can’t perform that action at this time.
0 commit comments