Skip to content

Commit

Permalink
Add gem publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurynas Butkus committed Aug 4, 2024
1 parent a4665b6 commit 5790da8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish gem to rubygems
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1

# setup .gem/credentials
- run: mkdir -p ~/.gem
- run: echo -e "---\n:rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}" > ~/.gem/credentials
- run: chmod 0600 ~/.gem/credentials

- run: gem build convert_api.gemspec --output=release.gem
- run: gem push release.gem

0 comments on commit 5790da8

Please sign in to comment.