Skip to content

Commit

Permalink
Add action to publish gem
Browse files Browse the repository at this point in the history
  • Loading branch information
jared-invoiced committed Dec 24, 2024
1 parent f5b65dd commit e0ed992
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish

on:
workflow_dispatch: {}

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3

- name: Build
run: gem build invoiced.gemspec

- name: Publish gems to Rubygems
run: gem push invoiced-*.gem
env:
GEM_HOST_API_KEY: ${{secrets.GEM_HOST_API_KEY}}
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,3 @@ gem build invoiced.gemspec
```

The test suite can be ran with `rake test`

## Deploying

The package can be uploaded to pypi with the following commands:

```
gem build invoiced.gemspec
gem push invoiced-X.Y.Z.gem
```

0 comments on commit e0ed992

Please sign in to comment.