Skip to content

Commit

Permalink
Update DEPLOY.md
Browse files Browse the repository at this point in the history
  • Loading branch information
okcodes committed Oct 16, 2020
1 parent 6af49c8 commit 4dbca36
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions DEPLOY.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,38 @@
# Deployment Guide

Just run
## Prepare to deploy

- From `master` create `relese` branch.
- Checkout `release` branch.
- Update `README.md` and `package.json` to the new version.
- Commit changes.
- Create tag and release targeting `release` branch.
- Merge `release` to `master`.
- Delete `release` branch.


## (Manual) Deploy

- Checkout version just tagged in the previous steps
- Update cloud resources with:

```shell script
amplify env checkout prod

# If there are API changes
amplify push

npm run build

firebase deploy -m "v0.0.4 Add custom date filter"
```

That's it. Enjoy!
- Test locally

---
```shell script
npm run build
firebase serve --only hosting
```

Wanna test before deploying? Just run:
- Deploy code

```shell script
firebase serve --only hosting
npm run build
firebase deploy -m "v0.0.5 Account picker in tree view"
```

0 comments on commit 4dbca36

Please sign in to comment.