Browse Source

fix publish_gh_page

accidentally commited temporary change last commit
sschmid 4 years ago
parent
commit
6a24624092
1 changed files with 17 additions and 0 deletions
  1. 17 0
      bin/publish_gh_page.sh

+ 17 - 0
bin/publish_gh_page.sh

@@ -1,4 +1,21 @@
+#!/bin/bash
 
+# Prepare files to be published
+npm run build:doc
+npm run docs
+
+# Clone github page
+git clone git@github.com:opensheetmusicdisplay/opensheetmusicdisplay.github.io.git
+cd opensheetmusicdisplay.github.io
+git status
+
+# Copy class documentation
+rsync -a ../build/docs/* ./classdoc/
+
+# Copy demo application
+rsync -a ../build/demo.min.js ./demo/
+rm -rf ./demo/sheets
+rsync -a ../test/data/* ./demo/sheets/
 
 # Commit and push changes
 git status