Skip to content

Commit a7e2d66

Browse files
fix build
1 parent 4ab28df commit a7e2d66

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.circleci/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,20 @@ jobs:
1111
- add_ssh_keys:
1212
fingerprints:
1313
- "SHA256:USaw9IC3qDmo5lTDeDE1ctu2VeLlrFbqhYZrPVJlw2U"
14+
- "c0:90:93:c0:d1:79:9e:d6:14:2e:0f:30:77:1a:83:04"
15+
16+
- restore_cache:
17+
keys:
18+
- source-v1- #one time, not every time!
1419

1520
# checks out the source code for a job over SSH
1621
- checkout
1722

23+
- save_cache:
24+
key: source-v1-1 # Sept 7, 2019
25+
paths:
26+
- ".git"
27+
1828
- restore_cache:
1929
keys:
2030
- gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}

Rakefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ task :deploy => [:check_git] do
2222
system "rm -rf _posts/python/html" or exit!(1)
2323
system "git clone -b built git@github.com:plotly/plotly.py-docs _posts/python/html" or exit!(1)
2424
puts "...generate _site"
25-
system "jekyll build --verbose && git checkout \"#{deploy_branch}\" && git pull origin \"#{deploy_branch}\" && cp -r _site/* . && rm -rf _site/ && touch .nojekyll && git add . && git commit -m \"#{message}\" && git push origin \"#{deploy_branch}\"" or exit!(1)
26-
puts "...git checkout \"#{source_branch}\""
27-
system "git checkout \"#{source_branch}\""
28-
system "osascript -e 'display notification \"rake deploy just finished\" with title \"Docs are ready!\"'"
25+
system "jekyll build && git checkout \"#{deploy_branch}\" && git pull origin \"#{deploy_branch}\" && cp -r _site/* . && rm -rf _site/ && touch .nojekyll && git add . && git commit -m \"#{message}\" && git push origin \"#{deploy_branch}\"" or exit!(1)
2926
end
3027

3128
desc "Serve as if deploying"

0 commit comments

Comments
 (0)