forked from graphile/crystal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 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,30 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
set -x | ||
|
||
# This script is designed to run on Benjie's machine and it's only temporary | ||
# whilst we're publishing the docs to a single Heroku server. In future, we'll | ||
# use GitHub pages... somehow. Once we figure out how to publish 4 separate | ||
# websites from there... | ||
|
||
(cd grafast/website && yarn build) | ||
rm -rf ../../benjie/crystal-docs/grafast | ||
cp -a grafast/website/build ../../benjie/crystal-docs/grafast | ||
|
||
(cd postgraphile/website && yarn build) | ||
rm -rf ../../benjie/crystal-docs/postgraphile | ||
cp -a postgraphile/website/build ../../benjie/crystal-docs/postgraphile | ||
|
||
(cd graphile-build/website && yarn build) | ||
rm -rf ../../benjie/crystal-docs/graphile-build | ||
cp -a graphile-build/website/build ../../benjie/crystal-docs/graphile-build | ||
|
||
(cd utils/website && yarn build) | ||
rm -rf ../../benjie/crystal-docs/star | ||
cp -a utils/website/build ../../benjie/crystal-docs/star | ||
|
||
cd ../../benjie/crystal-docs | ||
git add grafast postgraphile graphile-build star | ||
git commit -m"Update websites" | ||
git push | ||
|