浏览代码

fix publish_gh_page

accidentally commited temporary change last commit
sschmid 4 年之前
父节点
当前提交
6a24624092
共有 1 个文件被更改,包括 17 次插入0 次删除
  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