File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 deploy :
1010 name : Deploy SDK to Rubygems
1111 runs-on : ubuntu-latest
12+ permissions :
13+ contents : read
14+ id-token : write
1215 env :
1316 BW_ACCOUNT_ID : ${{ secrets.BW_ACCOUNT_ID }}
1417 BW_USERNAME : ${{ secrets.BW_USERNAME }}
@@ -47,12 +50,12 @@ jobs:
4750 TAG : ${{ github.event.release.tag_name }}
4851
4952 - name : Checkout
50- uses : actions/checkout@v6
53+ uses : actions/checkout@v7
5154
5255 - name : Setup Ruby
5356 uses : ruby/setup-ruby@v1
5457 with :
55- ruby-version : 3.3
58+ ruby-version : 4.0
5659
5760 - name : Update Gem Version
5861 run : sed -i "s/VERSION = '.*'/VERSION = '$GEM_VERSION'/g" lib/bandwidth-sdk/version.rb
@@ -64,12 +67,11 @@ jobs:
6467 prism mock ./bandwidth.yml & (sleep 3; rake unit)
6568 shell : bash
6669
70+ - name : Configure Rubygems Trusted Publishing Credentials
71+ uses : rubygems/configure-rubygems-credentials@v2.1.0
72+
6773 - name : Deploy to Rubygems
6874 run : |
69- mkdir ~/.gem
70- touch ~/.gem/credentials
71- chmod 0600 ~/.gem/credentials
72- printf -- "---\n:rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}\n" > ~/.gem/credentials
7375 gem build *.gemspec
7476 gem push *.gem
7577
You can’t perform that action at this time.
0 commit comments