Skip to content

Commit

Permalink
show credentials content
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocabrera820 committed May 4, 2024
1 parent 9ae3b4a commit 3e9c56d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions command_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Module to run a command and exit if it fails
module CommandSystem
def self.run_command(*cmd)
puts "Running command #{cmd}"
puts "Running command: #{cmd.join(' ')}"
exit 1 unless system(*cmd)
end
end
4 changes: 3 additions & 1 deletion main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
require_relative 'gem_builder'
require_relative 'inputs'
require_relative 'publish'
require_relative "command_system"

begin
GemBuilder.build
# GemBuilder.build
Credentials.generate_credentials_file
CommandSystem.run_command("cat", Credentials.add_gh_credentials)
Publish.to_rubygems if Inputs.rubygems_api_key?
Publish.to_github_packages if Inputs.github_token?
ensure
Expand Down

0 comments on commit 3e9c56d

Please sign in to comment.