Skip to content

Commit

Permalink
CI: fix publish gem condition (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-descope committed Mar 19, 2024
1 parent e21ec2f commit 937d795
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 39 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,4 @@ jobs:
env:
DESCOPE_MANAGEMENT_KEY: ${{ secrets.DESCOPE_MANAGEMENT_KEY }}
DESCOPE_PROJECT_ID: ${{ secrets.DESCOPE_PROJECT_ID }}
run: bundle exec rspec spec/integration

# in order to release use conventional commits
# $ git commit --allow-empty -m "chore: release 1.0.0" -m "Release-As: 1.0.0" && git push
# this will open a new PR with the changelog and bump the version
# Release Please will assume that you are using Conventional Commit messages.
#
# The most important prefixes you should have in mind are:
#
# fix: which represents bug fixes, and correlates to a SemVer patch.
# feat: which represents a new feature, and correlates to a SemVer minor.
# feat!:, or fix!:, refactor!:, etc., which represent a breaking change (indicated by the !) and will result in a SemVer major.
- uses: google-github-actions/release-please-action@v4
id: release
if: github.ref == 'refs/heads/main'

run: bundle exec rspec spec/integration
3 changes: 1 addition & 2 deletions .github/workflows/publish-gem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Ruby Gem

on:
release:
types: [created]
types: [published]

permissions:
contents: read
Expand Down Expand Up @@ -34,4 +34,3 @@ jobs:
gem push *.gem
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"
if: ${{ steps.release.outputs.release_created }}
36 changes: 16 additions & 20 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
descope (1.0.4)
descope (1.0.5)
addressable (~> 2.8)
jwt (~> 2.7)
rest-client (~> 2.1)
Expand All @@ -11,7 +11,7 @@ PATH
GEM
remote: https://rubygems.org/
specs:
activesupport (7.1.3)
activesupport (7.1.3.2)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
Expand All @@ -26,38 +26,38 @@ GEM
ast (2.4.2)
attr_extras (7.1.0)
base64 (0.2.0)
bigdecimal (3.1.6)
bigdecimal (3.1.7)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
diff-lcs (1.5.0)
diff-lcs (1.5.1)
docile (1.4.0)
domain_name (0.6.20240107)
drb (2.2.0)
ruby2_keywords
drb (2.2.1)
factory_bot (6.4.6)
activesupport (>= 5.0.0)
faker (2.23.0)
faker (3.2.3)
i18n (>= 1.8.11, < 2)
fuubar (2.5.1)
rspec-core (~> 3.0)
ruby-progressbar (~> 1.4)
http-accept (1.7.0)
http-cookie (1.0.5)
domain_name (~> 0.5)
i18n (1.14.1)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
json (2.7.1)
jwt (2.7.1)
jwt (2.8.1)
base64
language_server-protocol (3.17.0.3)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2023.1205)
minitest (5.21.2)
mime-types-data (3.2024.0305)
minitest (5.22.3)
mutex_m (0.2.0)
netrc (0.11.0)
optimist (3.1.0)
parallel (1.24.0)
parser (3.3.0.4)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
patience_diff (1.2.0)
Expand Down Expand Up @@ -90,7 +90,7 @@ GEM
rspec-mocks (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.0)
rspec-support (3.13.1)
rubocop (1.60.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
Expand All @@ -102,15 +102,14 @@ GEM
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-ast (1.31.2)
parser (>= 3.3.0.4)
rubocop-rails (2.23.1)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
selenium-webdriver (4.17.0)
base64 (~> 0.2)
Expand All @@ -134,10 +133,7 @@ GEM
zache (0.13.1)

PLATFORMS
arm64-darwin-22
arm64-darwin-23
x86_64-darwin-23
x86_64-linux

DEPENDENCIES
bundler
Expand All @@ -157,4 +153,4 @@ DEPENDENCIES
super_diff (= 0.11.0)

BUNDLED WITH
2.4.19
2.5.6
2 changes: 1 addition & 1 deletion lib/descope/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

# Current version of gem
module Descope
VERSION = '1.0.4'
VERSION = '1.0.5'
SDK_VERSION = '1.0.0'
end

0 comments on commit 937d795

Please sign in to comment.