File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- public
21tools /contributors /node_modules
32tools /contributors /contributors.json
Original file line number Diff line number Diff line change 1+ [submodule "public "]
2+ path = public
3+ url = git@github.com:dev-sec/dev-sec.github.io.git
4+ branch = master
Original file line number Diff line number Diff line change 11# dev-sec.io
22
3- ## Installation
3+ ## Development and Deployment
44
551 . Install Hugo [ here] ( https://gohugo.io/getting-started/installing/ )
6- 2 . Develop via:
7- ```
8- hugo server
9- ```
6+ 2 . local development via: ` hugo server `
7+ 3 . deployment via ` ./deploy.sh `
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # This deploy script is from
4+ # https://gohugo.io/hosting-and-deployment/hosting-on-github/#deployment-via-docs-folder-on-master-branch
5+
6+ echo -e " \033[0;32mDeploying updates to GitHub...\033[0m"
7+
8+ # Build the project.
9+ hugo -t devsec
10+
11+ # Go To Public folder
12+ cd public
13+ # Add changes to git.
14+ git add .
15+
16+ # Commit changes.
17+ msg=" rebuilding site ` date` "
18+ if [ $# -eq 1 ]
19+ then msg=" $1 "
20+ fi
21+ git commit -m " $msg "
22+
23+ # Push source and build repos.
24+ git push origin master
25+
26+ # Come Back up to the Project Root
27+ cd ..
You canβt perform that action at this time.
0 commit comments