Skip to content

Commit 1e24ccc

Browse files
committed
Clean out unused aspects of Rakefile
1 parent aae87af commit 1e24ccc

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

Rakefile

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ task default: :test
1818

1919
desc 'Invoke HTML-Proofer'
2020
task :html_proofer do
21-
Rake::Task[:generate_sample].invoke('https://www.gjtorikian.com/graphql-docs')
21+
Rake::Task[:generate_sample]
2222
require 'html-proofer'
2323
output_dir = File.join(File.dirname(__FILE__), 'output')
2424

@@ -66,21 +66,3 @@ namespace :sample do
6666
end
6767
task server: :serve
6868
end
69-
70-
desc 'Generate and publish docs to gh-pages'
71-
task :publish do
72-
ENV['GQL_DOCS_BASE_URL'] = '/graphql-docs'
73-
Rake::Task[:generate_sample].invoke('https://www.gjtorikian.com/graphql-docs')
74-
Dir.mktmpdir do |tmp|
75-
system "mv output/* #{tmp}"
76-
system 'git checkout gh-pages'
77-
system 'rm -rf *'
78-
system "mv #{tmp}/* ."
79-
message = "Site updated at #{Time.now.utc}"
80-
system 'git add .'
81-
system "git commit -am #{message.shellescape}"
82-
system 'git push origin gh-pages --force'
83-
system 'git checkout master'
84-
system 'echo yolo'
85-
end
86-
end

0 commit comments

Comments
 (0)