diff --git a/deploy/publish-gh-pages.sh b/deploy/publish-gh-pages.sh new file mode 100755 index 0000000..9d9eee6 --- /dev/null +++ b/deploy/publish-gh-pages.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Bash shell script to publish the app to GitHub pages. +pwd +git checkout gh-pages +git merge master +npm run build +cp -r build docs +git add -A +git commit -m "Updating GitHub page" +git push diff --git a/package.json b/package.json index 7bbe471..3ef1943 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "test": "react-scripts test", "eject": "react-scripts eject", "lint": "standard --env mocha --fix", - "pub": "node deploy/publish-main.js" + "pub": "node deploy/publish-main.js", + "pub:ghp": "./deploy/publish-gh-pages.sh" }, "eslintConfig": { "extends": "react-app" @@ -39,5 +40,6 @@ "minimal-slp-wallet": "5.0.3", "standard": "17.0.0", "web3.storage": "4.3.0" - } + }, + "homepage": "https://permissionless-software-foundation.github.io/react-bootstrap-web3-spa" }