-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use ref position rather than (author, date) * Makefile * firebase.json * Makefile deployment fixes * Makefile clean rule: remove booklet pdf
- Loading branch information
1 parent
e0f1ae5
commit d620730
Showing
3 changed files
with
78 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#export GH_USER="lucasgautheron" | ||
#export GITHUB_TOKEN="" | ||
|
||
.PHONY: all clean simulations website booklet deploy | ||
|
||
all: | ||
php compile.php -V -B -S | ||
|
||
clean: | ||
find tmp/ ! -name '.gitignore' -type f -exec rm -f {} + | ||
find . -name "*.html" -type f -delete | ||
find . -type d -empty -delete | ||
rm booklet/booklet.pdf | ||
|
||
simulations: | ||
php compile.php -V -B | ||
|
||
website: | ||
php compile.php -V | ||
|
||
booklet: | ||
php compile.php -V -B | ||
|
||
deploy: | ||
git archive --format=tar master -o deployment/master.tar | ||
rm -rf deployment/public | ||
mkdir deployment/public | ||
tar xvf deployment/master.tar -C deployment/public | ||
rm -rf deployment/master.tar | ||
cd deployment/public && \ | ||
make all && \ | ||
rm -rf data && \ | ||
rm -rf tmp | ||
|
||
cd deployment && \ | ||
firebase --project cosmology-c47d4 deploy && \ | ||
tar -jcvf public.tar.bz2 public/ | ||
|
||
if [ ! -f deployment/linux-amd64-github-release.tar.bz2 ]; then \ | ||
wget https://github.com/aktau/github-release/releases/download/v0.6.2/linux-amd64-github-release.tar.bz2 -P deployment/; \ | ||
fi | ||
|
||
tar jxvf deployment/linux-amd64-github-release.tar.bz2 -C deployment | ||
|
||
-exec ./deployment/bin/linux/amd64/github-release delete --user lucasgautheron --repo CosmologyWebsite --tag `date +%Y-%m-%d` | ||
exec ./deployment/bin/linux/amd64/github-release release --user lucasgautheron --repo CosmologyWebsite --tag `date +%Y-%m-%d` --name "Deployment $${RELEASE_VERSION}" --description "" | ||
exec ./deployment/bin/linux/amd64/github-release upload --user lucasgautheron --repo CosmologyWebsite --tag `date +%Y-%m-%d` --name "public.tar.bz2" --file deployment/public.tar.bz2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"hosting": { | ||
"public": "public", | ||
"ignore": [ | ||
"firebase.json", | ||
"**/.*", | ||
"**/node_modules/**" | ||
] | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters