tools/fast: fix uploading
parent
22b1fca793
commit
e09d3eef5f
|
@ -118,7 +118,8 @@ fn main() {
|
||||||
// exec('git checkout master')
|
// exec('git checkout master')
|
||||||
// os.write_file('last_commit.txt', commits[commits.len - 1]) ?
|
// os.write_file('last_commit.txt', commits[commits.len - 1]) ?
|
||||||
// Upload the result to github pages
|
// Upload the result to github pages
|
||||||
if os.args.contains('upload') {
|
if os.args.contains('-upload') {
|
||||||
|
println('uploading...')
|
||||||
os.chdir('website')
|
os.chdir('website')
|
||||||
os.execute_or_exit('git checkout gh-pages')
|
os.execute_or_exit('git checkout gh-pages')
|
||||||
os.cp('../index.html', 'index.html') ?
|
os.cp('../index.html', 'index.html') ?
|
||||||
|
|
Loading…
Reference in New Issue