Remove unneeded code in Rakefile

This commit is contained in:
Gabriel Arazas 2023-06-18 18:13:20 +08:00
parent 5ade8dd120
commit 744ee21700
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -5,12 +5,6 @@ require 'json'
require 'open3' require 'open3'
require 'shellwords' require 'shellwords'
github_api_headers = {
'Header' => 'application/vnd.github+json',
'X-GitHub-Api-Version' => '2022-11-28'
}
github_api_headers['Authorization'] = "Token #{ENV['GITHUB_API_BEARER_TOKEN']}" if ENV['GITHUB_API_BEARER_TOKEN']
desc 'Build the site' desc 'Build the site'
task :build, [:context, :base_url] => [:export_avatars] do |_, args| task :build, [:context, :base_url] => [:export_avatars] do |_, args|
args.with_defaults(context: 'production') args.with_defaults(context: 'production')