Skip to content

Commit ba73354

Browse files
authored
Add workflow for pushing to RubyGems (#28)
Creates a workflow for publishing to the public Zendesk RubyGems account. Uses the workflow from the public `gw` gem. `gw`'s (ruby-gem-publication readme](https://github.com/zendesk/gw/blob/main/ruby-gem-publication/README.md) This also clears out the old travis config (unused), updates versioning to be consistent with other projects, and moves version references to a proper constant.
1 parent 658c0e7 commit ba73354

File tree

7 files changed

+26
-23
lines changed

7 files changed

+26
-23
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Publish Gem
2+
3+
on:
4+
push:
5+
tags: v*
6+
7+
jobs:
8+
call-workflow:
9+
uses: zendesk/gw/.github/workflows/ruby-gem-publication.yml@main
10+
secrets:
11+
RUBY_GEMS_API_KEY: ${{ secrets.RUBY_GEMS_API_KEY }}
12+
RUBY_GEMS_TOTP_DEVICE: ${{ secrets.RUBY_GEMS_TOTP_DEVICE }}

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

Gemfile.lock

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
PATH
22
remote: .
33
specs:
4-
ticket_sharing (2.0.1)
4+
ticket_sharing (2.1.0)
55

66
GEM
77
remote: https://rubygems.org/
88
specs:
99
addressable (2.8.0)
1010
public_suffix (>= 2.0.2, < 5.0)
11-
bump (0.4.2)
1211
byebug (8.2.5)
1312
crack (0.4.3)
1413
safe_yaml (~> 1.0.0)
@@ -43,7 +42,6 @@ PLATFORMS
4342
ruby
4443

4544
DEPENDENCIES
46-
bump
4745
byebug
4846
faraday (~> 1.0.0)
4947
rake

Rakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
require 'bundler/setup'
22
require 'bundler/gem_tasks'
3-
require 'bump/tasks'
3+
4+
# Pushing to rubygems is handled by a github workflow
5+
ENV['gem_push'] = 'false'
46

57
require 'rspec/core/rake_task'
68
RSpec::Core::RakeTask.new(:spec)

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Ticket Sharing [![Build Status](https://secure.travis-ci.org/zendesk/ticket_sharing.png)](http://travis-ci.org/zendesk/ticket_sharing)
1+
# Ticket Sharing [![Build Status](https://github.com/zendesk/ticket_sharing/actions/workflows/ruby.yml/badge.svg)](https://github.com/zendesk/ticket_sharing/actions/workflows/ruby.yml)
22

33
A ruby implementation of the [Networked Help Desk] [1] API
44

lib/ticket_sharing/version.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
module TicketSharing
4+
VERSION = "2.1.0"
5+
end

ticket_sharing.gemspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
Gem::Specification.new 'ticket_sharing', '2.1.0' do |s|
1+
require './lib/ticket_sharing/version'
2+
3+
Gem::Specification.new 'ticket_sharing' do |s|
4+
s.version = TicketSharing::VERSION
25
s.authors = ['Josh Lubaway']
36
s.email = 'josh@zendesk.com'
47
s.extra_rdoc_files = ['Readme.md']
@@ -12,7 +15,6 @@ Gem::Specification.new 'ticket_sharing', '2.1.0' do |s|
1215
s.required_ruby_version = '>= 2.1.0'
1316

1417
s.add_development_dependency 'rake'
15-
s.add_development_dependency 'bump'
1618
s.add_development_dependency 'webmock'
1719
s.add_development_dependency 'rspec'
1820
s.add_development_dependency 'faraday', '~> 1.0.0'

0 commit comments

Comments
 (0)