-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathworkscript.sh
57 lines (47 loc) · 1.09 KB
/
workscript.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Go to directory
cd ~/GitHub/econgrowth.github.io-src
# Clone
git clone [email protected]:econgrowth/econgrowth.github.io-src ghpages
# Move into directory for pages and check
cd ghpages
git remote -v
# Clone output
git submodule add [email protected]:econgrowth/econgrowth.github.io.git output
# Create baseline
pelican-quickstart
conda activate Pelican
# copy files
ipython copy_content.ipy
# Create content and see website
make html && make serve
make html && make publish && make serve
# If it is ok
make html && make publish
# Publish and git commit
cd output
git add .
git commit -m "V.1.0"
git push -u origin master
cd ..
echo '*.pyc' >> .gitignore #don't need pyc files
git add .
git commit -m "V1.0"
git push -u origin master
# Publish and git commit
cd output
git add .
git commit -m "updated computation"
git push -u origin master
cd ..
git add .
git commit -m "updated computation"
git push -u origin master
# Publish and git commit
cd output
git add .
git commit -m "Updated reading list"
git push -u origin master
cd ..
git add .
git commit -m "Updated reading list"
git push -u origin master