Skip to content

Commit

Permalink
🤖 Add a CI/CD method to use github packages for Bubblez.
Browse files Browse the repository at this point in the history
Refs #36.
  • Loading branch information
jwir3 committed Oct 14, 2022
1 parent be264ef commit ee6d37a
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 59 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Build, Test, and Deploy"

on:
push:
tags:
- '*'

jobs:
Build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6.1' # Not needed with a .ruby-version file
bundler-cache: true
- name: Build
run: gem build bubblez.gemspec
- uses: actions/upload-artifact@v2
with:
name: bubblez-gemfile
path: bubblez-*.gem
Deploy:
needs: Build
runs-on: ubuntu-latest
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6.1' # Not needed with a .ruby-version file
bundler-cache: true
- uses: actions/download-artifact@v2
with:
name: bubblez-gemfile
- name: Release Gem to GitHub Packages
uses: jstastny/publish-gem-to-github@v2.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
owner: FoamFactory
47 changes: 0 additions & 47 deletions .github/workflows/build-test-deploy.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: 'Build and Test'
name: "Build and Test"

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
Test:

runs-on: ubuntu-latest

Expand Down
9 changes: 0 additions & 9 deletions bubblez.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ Gem::Specification.new do |spec|
spec.summary = %q{A gem for easily defining client REST interfaces in Ruby}
spec.description = %q{Retrofit, by Square, allows you to easily define annoations that will generate the necessary boilerplate code for your REST interfaces. Bubblez is a Gem that seeks to bring a similar style of boilerplate generation to Ruby.}

# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
# to allow pushing to a single host or delete this section to allow pushing to any host.
if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = "https://rubygems.org"
else
raise "RubyGems 2.0 or newer is required to protect against " \
"public gem pushes."
end

spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
Expand Down
2 changes: 1 addition & 1 deletion lib/bubblez/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def self.package_name
end

def self.version_name
'1.0.0'
'1.0.1'
end

def self.version_code
Expand Down

0 comments on commit ee6d37a

Please sign in to comment.