Skip to content

Commit

Permalink
Add doc publishing script
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Sep 15, 2023
1 parent e8842d1 commit 9f8209e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions publish-websites.sh
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

0 comments on commit 9f8209e

Please sign in to comment.