-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathworkscript.sh
More file actions
49 lines (41 loc) · 1.04 KB
/
workscript.sh
File metadata and controls
49 lines (41 loc) · 1.04 KB
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
# Select Correct Python
source activate GeoPython2env
# Go to directory
cd ~/GitHub/Macroeconomics.github.io-src
# Clone
git clone git@github.com:Macroeconomics/Macroeconomics.github.io-src ghpages
# Move into directory for pages and check
cd ghpages
git remote -v
# Clone output
git submodule add git@github.com:Macroeconomics/Macroeconomics.github.io.git output
git submodule add git@github.com:Macroeconomics/pelican-plugins.git pelican-plugins
# Create baseline
pelican-quickstart
# copy files
ipython copy_content.ipy
# Create content and see website
make html && make serve
make html && make publish && make serve
make html && make publish
# If it is ok
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 slides"
git push -u origin master
cd ..
git add .
git commit -m "Updated slides"
git push -u origin master