Skip to content

Commit 10fd131

Browse files
committed
Attempts different method for publishing to rubygems
1 parent 0dd69fe commit 10fd131

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/main.yml

+5-10
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ jobs:
4040
- name: Test
4141
run: bundle exec rake spec
4242

43-
- name: Setup Rubygems credentials
44-
uses: fac/ruby-gem-setup-credentials-action@v2
45-
if: github.event_name == 'push'
46-
&& github.ref == 'refs/heads/main'
47-
&& github.repository == 'corgibytes/freshli-commons'
48-
&& !contains(toJSON(github.event.commits.*.message), '[skip release]')
49-
with:
50-
token: ${{ secrets.RUBYGEMS_API_KEY }}
51-
5243
- name: Bump version
5344
if: github.event_name == 'push'
5445
&& github.ref == 'refs/heads/main'
@@ -70,4 +61,8 @@ jobs:
7061
&& github.ref == 'refs/heads/main'
7162
&& github.repository == 'corgibytes/freshli-commons'
7263
&& !contains(toJSON(github.event.commits.*.message), '[skip release]')
73-
run: bundle exec rake release
64+
uses: cadwallion/publish-rubygems-action@master
65+
env:
66+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
67+
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
68+
RELEASE_COMMAND: bundle exec rake release

0 commit comments

Comments
 (0)