-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* generated credentials * rename file * add methods to handle action inputs * fix: avoid overwriting user credentials * fix: set correct action
- Loading branch information
1 parent
87afc94
commit 9ae3b4a
Showing
6 changed files
with
49 additions
and
23 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative 'credentials' | ||
require_relative 'gem_builder' | ||
require_relative 'inputs' | ||
require_relative 'publish' | ||
require_relative 'credentials' | ||
|
||
begin | ||
GemBuilder.build | ||
Publish.to_rubygems unless Inputs::RUBYGEMS_API_KEY.nil? | ||
Publish.to_github_packages unless Inputs::GITHUB_TOKEN.nil? | ||
Credentials.generate_credentials_file | ||
Publish.to_rubygems if Inputs.rubygems_api_key? | ||
Publish.to_github_packages if Inputs.github_token? | ||
ensure | ||
Credentials.delete_credentials_file_path | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters