| #!/bin/bash |
| npm run clean:install |
| echo 'Build Complete' |
| git checkout gh-pages |
| echo 'Created and Checked out gh-pages branch' |
| |
| cp -f ./target/gh-pages.package.json ./package.json |
| npm install |
| mkdir ./node_modules/nifi-fds |
| cp -Rf ./target/platform/ ./node_modules/nifi-fds/platform |
| cp -Rf ./target/demo-app/ ./demo-app |
| cp -f ./target/gh-pages.index.html ./index.html |
| cp -f ./target/gh-pages.systemjs.config.js ./demo-app/systemjs.config.js |
| echo 'Tracking files' |
| git add -A . |
| echo 'Commiting files' |
| git commit -m 'gh-pages update' |
| echo 'Pushing files into gh-pages branch' |
| git push apache gh-pages:gh-pages |