From 3c3bfa66f4e82484984846f4c53831389ac8f89f Mon Sep 17 00:00:00 2001 From: Gabriel Arazas <foodogsquared@foodogsquared.one> Date: Tue, 2 May 2023 12:22:23 +0800 Subject: [PATCH] Update the build task --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 7a1f581..7df2896 100644 --- a/Rakefile +++ b/Rakefile @@ -10,8 +10,8 @@ github_api_headers = { } github_api_headers['Authorization'] = "Token #{ENV['GITHUB_API_BEARER_TOKEN']}" if ENV['GITHUB_API_BEARER_TOKEN'] -desc 'Build the site in Netlify with the given context' -task :build, [:context, :base_url] => [:optimize_avatars] do |_, args| +desc 'Build the site' +task :build, [:context, :base_url] => [:export_avatars] do |_, args| args.with_defaults(context: 'production') draft_args = '--environment development --buildDrafts --buildFuture --buildExpired' unless args.context == 'production' base_uri_args = "-b #{args.base_url}" if args.base_url