-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Release Process | ||
|
||
## Web wallet | ||
|
||
Staging: | ||
- checkout master branch | ||
- build | ||
- deploy to <https://wallet.stg.oasisprotocol.org/> | ||
|
||
Production: | ||
- ensure <https://wallet.stg.oasisprotocol.org/> works | ||
- especially features related to changes | ||
- look at CSP errors (expect one error: blocked `eval` in `inquire`) | ||
- see the footer for what commit is deployed | ||
- update stable branch to that commit | ||
- build | ||
- deploy to <https://wallet.oasisprotocol.org/> | ||
|
||
### Build | ||
|
||
```sh | ||
yarn install --frozen-lockfile | ||
yarn build # uses oasisscan backend | ||
# or REACT_APP_BACKEND=oasismonitor yarn build | ||
``` | ||
|
||
### Deploy | ||
|
||
Manually deploy `./build/` folder by following <https://github.com/oasisprotocol/oasis-wallet-web/wiki/Deployment-on-AWS>. | ||
|
||
Verify deployed version by opening the page in incognito (no cache) - it is displayed in the footer. | ||
|
||
Update Content-Security-Policy header. | ||
|
||
```sh | ||
yarn print-csp | ||
|
||
# See old deployed CSP | ||
curl --head https://wallet.stg.oasisprotocol.org/ -s | grep content-security-policy | ||
curl --head https://wallet.oasisprotocol.org/ -s | grep content-security-policy | ||
``` | ||
|
||
|
||
## TODO: Extension wallet | ||
|
||
- Update version in `manifest.json` | ||
- Changelog | ||
- Commit | ||
- Make PR and merge | ||
- Git tag | ||
- Build | ||
|
||
```sh | ||
VERSION=`cat extension/src/manifest.json | jq .version -r` | ||
COMMIT=`git rev-parse --short HEAD` | ||
yarn install --frozen-lockfile | ||
yarn build:ext | ||
zip -r oasis-wallet-$VERSION-$COMMIT.zip build-ext/ | ||
``` | ||
|
||
- GitHub pre-release with zip file | ||
- Chrome store | ||
- Update pre-release |