mirror of https://github.com/kremalicious/blog.git
update docs
This commit is contained in:
parent
fc5e273479
commit
eb3ab3301c
|
@ -81,8 +81,7 @@ jobs:
|
|||
- uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: public
|
||||
- name: Deploy to S3
|
||||
run: ./scripts/deploy-s3.sh
|
||||
- run: npm run deploy
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
|
|
|
@ -233,16 +233,14 @@ npm run new photo /path/to/photo.jpg
|
|||
|
||||
## 🚚 Deployment
|
||||
|
||||
Every branch or Pull Request is automatically deployed by [Vercel](https://vercel.com) with their GitHub integration. A link to a preview deployment will appear under each Pull Request.
|
||||
|
||||
The latest deployment of the `main` branch is automatically aliased to `kremalicious.com`.
|
||||
Every branch or Pull Request is automatically deployed by [Vercel](https://vercel.com) with their GitHub integration. A link to a preview deployment will appear under each Pull Request. Because of Vercel's maximum cache size of 500MB, Vercel is not used for the production deployment.
|
||||
|
||||
### S3 Deployment
|
||||
|
||||
The deploy command simply calls the [`scripts/deploy-s3.sh`](scripts/deploy-s3.sh) script, syncing the contents of the `public/` folder to S3:
|
||||
The latest deployment of the `main` branch is automatically deployed to S3 from the GitHub Action as the production deployment, aliased to `kremalicious.com`. The deploy command simply calls the [`scripts/deploy-s3.sh`](scripts/deploy-s3.sh) script, syncing the contents of the `public/` folder to S3:
|
||||
|
||||
```bash
|
||||
npm run deploy:s3
|
||||
npm run deploy
|
||||
```
|
||||
|
||||
## 🏛 Licenses
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"lint:md": "markdownlint './**/*.{md,markdown}' --ignore './{node_modules,public,.cache,.git,coverage}/**/*'",
|
||||
"format": "prettier --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx,md,json,css,scss}'",
|
||||
"tsc": "tsc --noEmit",
|
||||
"deploy:s3": "./scripts/deploy.sh",
|
||||
"deploy": "./scripts/deploy-s3.sh",
|
||||
"new": "babel-node ./scripts/new.js"
|
||||
},
|
||||
"browserslist": [
|
||||
|
|
Loading…
Reference in New Issue